2 # Linux router shared code Makefile
4 # Copyright 2001-2003, Broadcom Corporation
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
13 include $(TOPDIR
)/rules.mk
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
18 EXTRA_CFLAGS
:= -c
-I.
-I..
/include
24 $(PKG_BUILD_DIR
)/$(1): $(PKG_BUILD_DIR
)
25 $(TARGET_CC
) $(TARGET_CFLAGS
) $(EXTRA_CFLAGS
) -o
$$@
$$(patsubst %.o
,%.c
,$(1))
26 WLC_OBJS
+= $(PKG_BUILD_DIR
)/$(1)
30 $(foreach obj
,$(OBJS
),$(eval
$(call OBJ_template
,$(obj
))))
33 mkdir
-p
$(PKG_BUILD_DIR
)
35 $(PKG_BUILD_DIR
)/wlc
: $(WLC_OBJS
)
36 $(TARGET_CC
) -o
$@
$^
-lshared
38 $(TARGET_DIR
)/usr
/sbin
/wlc
: $(PKG_BUILD_DIR
)/wlc
42 compile
: $(PKG_BUILD_DIR
)/wlc
43 install: $(TARGET_DIR
)/usr
/sbin
/wlc
46 rm -rf
$(PKG_BUILD_DIR
)
This page took 0.053597 seconds and 5 git commands to generate.