MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink.org / Makefile-old
blob1b6b3f9a275f8b8f00367304bc7a61dbb13ed663
1 # Comment/uncomment the following line to enable/disable debugging
3 CC := xscale_be-gcc
4 LD := xscale_be-ld
6 include ./config.mk
8 WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs
9 CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS) -DRT2500_DBG -DBIG_ENDIAN -DLinux
10 #CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS) -DBIG_ENDIAN -DLinux
12 OBJ = rt2500.o
14 all: $(OBJ)
15         @touch config.mk
17 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
18         $(LD) -r $^ -o $@
19                 
20 clean:
21         rm -f *.o *~ core
23 install:
24         @touch config.mk
25         #mkdir -p $(TARGET_MODDIR)
26         echo $(TARGET_MODDIR)
27         install $(OBJ) $(TARGET_MODDIR)
28         
29         @if [ ! -f /etc/sysconfig/network-scripts/ifcfg-ra0 ]; then \
30                 echo "Create 'ifcfg-ra0' in /etc/sysconfig/network-scripts/"; \
31                 cp ifcfg-ra0 /etc/sysconfig/network-scripts/ ; \
32         fi
33         @if ! grep 'ra0' /etc/modules.conf ; then \
34                 echo "append 'alias ra0 rt2500' to /etc/modules.conf"; \
35                 echo "alias ra0 rt2500" >> /etc/modules.conf ; \
36         fi
37         
38 config:
39         @touch config.mk
40         @./Configure