add passive mode to wlioctl.h and wlc
[openwrt.git] / package / openwrt / wlc / Makefile
1 #
2 # Linux router shared code Makefile
3 #
4 # Copyright 2001-2003, Broadcom Corporation
5 # All Rights Reserved.
6 #
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.
11 #
12 # $Id$
13 include $(TOPDIR)/rules.mk
14
15 PKG_NAME:=wlc
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
17
18 EXTRA_CFLAGS := -c -I. -I../include
19
20 all: compile
21
22 WLC_OBJS:=
23 define OBJ_template
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)
27 endef
28
29 OBJS := wlc.o
30 $(foreach obj,$(OBJS),$(eval $(call OBJ_template,$(obj))))
31
32 $(PKG_BUILD_DIR):
33 mkdir -p $(PKG_BUILD_DIR)
34
35 $(PKG_BUILD_DIR)/wlc: $(WLC_OBJS)
36 $(TARGET_CC) -o $@ $^ -lshared
37
38 $(TARGET_DIR)/usr/sbin/wlc: $(PKG_BUILD_DIR)/wlc
39 install -m 755 $^ $@
40 $(STRIP) $@
41
42 compile: $(PKG_BUILD_DIR)/wlc
43 install: $(TARGET_DIR)/usr/sbin/wlc
44
45 clean:
46 rm -rf $(PKG_BUILD_DIR)
This page took 0.053597 seconds and 5 git commands to generate.