source: freewrt/package/wlcompat/Makefile@ 644c736

freewrt_1_0 freewrt_2_0
Last change on this file since 644c736 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.1 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8include $(TOPDIR)/mk/targets.mk
9
10PKG_NAME:= kmod-wlcompat
11PKG_RELEASE:= 3
12PKG_MODULE:= 30
13
14DISTFILES:=
15
16include $(TOPDIR)/mk/package.mk
17
18$(eval $(call PKG_template,KMOD_WLCOMPAT,$(PKG_NAME),$(KERNEL_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(KERNEL_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
19$(eval $(call PKG_template,KMOD_WLCOMPAT_DEBUG,$(PKG_NAME)-debug,$(KERNEL_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(KERNEL_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
20
21WLCOMPAT_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
22 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
23 -Wa,-mips32 -Wa,--trap -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -funsigned-char -nostdinc \
24 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -I$(STAGING_DIR)/usr/include -c
25
26$(WRKBUILD)/.prepared:
27 mkdir -p $(WRKBUILD)
28 touch $@
29
30$(WRKBUILD)/.built: $(WRKBUILD)/wlcompat.o $(WRKBUILD)/wlcompat-debug.o
31 touch $@
32
33$(WRKBUILD)/wlcompat.o: $(WRKBUILD)/.prepared
34 $(TARGET_CC) $(WLCOMPAT_FLAGS) -o $@ wlcompat.c
35
36$(WRKBUILD)/wlcompat-debug.o: $(WRKBUILD)/.prepared
37 $(TARGET_CC) -DDEBUG $(WLCOMPAT_FLAGS) -o $@ wlcompat.c
38
39$(IPKG_KMOD_WLCOMPAT): $(WRKBUILD)/wlcompat.o
40 $(INSTALL_DIR) $(IDIR_KMOD_WLCOMPAT)/etc/modules.d
41 $(INSTALL_DIR) $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(KERNEL_VERSION)
42 $(INSTALL_DATA) ./files/wlcompat.modules \
43 $(IDIR_KMOD_WLCOMPAT)/etc/modules.d/$(PKG_MODULE)-wlcompat
44 $(INSTALL_DATA) $(WRKBUILD)/wlcompat.o \
45 $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(KERNEL_VERSION)/
46 $(IPKG_BUILD) $(IDIR_KMOD_WLCOMPAT) $(PACKAGE_DIR)
47
48$(IPKG_KMOD_WLCOMPAT_DEBUG): $(WRKBUILD)/wlcompat-debug.o
49 $(INSTALL_DIR) $(IDIR_KMOD_WLCOMPAT_DEBUG)/lib/modules/$(KERNEL_VERSION)
50 $(INSTALL_DATA) $(WRKBUILD)/wlcompat-debug.o \
51 $(IDIR_KMOD_WLCOMPAT_DEBUG)/lib/modules/$(KERNEL_VERSION)/
52 $(IPKG_BUILD) $(IDIR_KMOD_WLCOMPAT_DEBUG) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.