MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink / Module / 2.4.x / Makefile
blob5cdd51202791466fe4e75d91cd0f963238b01f61
1 # Comment/uncomment the following line to enable/disable debugging
3 CC := cc
5 include ./config.mk
7 WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs
8 CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)
10 OBJ = rt2500.o
12 all: $(OBJ)
13 @touch config.mk
15 rt2500.o: rtmp_main.o mlme.o connect.o sync.o assoc.o auth.o auth_rsp.o rtmp_data.o rtmp_init.o sanity.o rtmp_wep.o rtmp_info.o eeprom.o rtmp_tkip.o wpa.o md5.o
16 $(LD) -r $^ -o $@
18 clean:
19 rm -f *.o *~ core
21 install:
22 @touch config.mk
23 #mkdir -p $(TARGET_MODDIR)
24 echo $(TARGET_MODDIR)
25 install $(OBJ) $(TARGET_MODDIR)
27 @if [ ! -f /etc/sysconfig/network-scripts/ifcfg-ra0 ]; then \
28 echo "Create 'ifcfg-ra0' in /etc/sysconfig/network-scripts/"; \
29 cp ifcfg-ra0 /etc/sysconfig/network-scripts/ ; \
31 @if ! grep 'ra0' /etc/modules.conf ; then \
32 echo "append 'alias ra0 rt2500' to /etc/modules.conf"; \
33 echo "alias ra0 rt2500" >> /etc/modules.conf ; \
36 config:
37 @touch config.mk
38 @./Configure