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-orig
blob569a0bbfff5f62b28baea19669fd40f7ec112cca
1 # Comment/uncomment the following line to enable/disable debugging\r
2 \r
3 CC := cc\r
4 \r
5 include ./config.mk\r
6 \r
7 WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs\r
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)\r
9 \r
10 OBJ = rt2500.o\r
12 all: $(OBJ)\r
13         @touch config.mk\r
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\r
16         $(LD) -r $^ -o $@\r
17                 \r
18 clean:\r
19         rm -f *.o *~ core\r
21 install:\r
22         @touch config.mk\r
23         #mkdir -p $(TARGET_MODDIR)\r
24         echo $(TARGET_MODDIR)\r
25         install $(DRIVERPATH) $(TARGET_MODDIR)\r
26         \r
27         @if [ ! -f /etc/sysconfig/network-scripts/ifcfg-ra0 ]; then \\r
28                 echo "Create 'ifcfg-ra0' in /etc/sysconfig/network-scripts/"; \\r
29                 cp ifcfg-ra0 /etc/sysconfig/network-scripts/ ; \\r
30         fi\r
31         @if [  -d /etc/sysconfig/network ]; then \\r
32                 echo "Create 'ifcfg-ra0' in /etc/sysconfig/network/"; \\r
33                 cp ./suse/ifcfg-ra0 /etc/sysconfig/network/ ; \\r
34         fi\r
35         @if ! grep 'ra0' $(PROBEPATH) ; then \\r
36                 echo "alias ra0 rt2500" >> $(PROBEPATH) ; \\r
37         fi\r
38                         \r
39 config:\r
40         @touch config.mk\r
41         @./Configure\r