Initial commit of the archived acx driver sources (0.2.0pre1)
[acx-mac80211.git] / src / Makefile
blob84b3216646621cb3eb92379623f4a61ce841d867
1 ifeq ($(VERSION).$(PATCHLEVEL), 2.6)
3 EXTRA_CFLAGS += -I$(src)/../include -DWLAN_HOSTIF=WLAN_PCI
5 obj-m += acx100_pci.o
7 acx100_pci-objs := acx100.o acx100_ioctl.o acx100_helper.o acx100_helper2.o ihw.o idma.o p80211conv.o acx80211frm.o
9 else
10 include $(ACX100_SRC)../config.mk
12 CC = gcc
13 #CFLAGS = -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=4 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -I../include/ -c -DWLAN_HOSTIF=WLAN_PCI
14 CFLAGS = -D__KERNEL__ -I$(KERNEL_BUILD)/include -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=4 -march=i586 -DMODULE -DMODVERSIONS -I../include/ -c -DWLAN_HOSTIF=WLAN_PCI
16 CFLAGS+=-include $(KERNEL_BUILD)/include/linux/modversions.h
17 LDFLAGS = -m elf_i386 -r
19 objects = acx100.o acx100_ioctl.o acx100_helper.o acx100_helper2.o ihw.o idma.o p80211conv.o acx80211frm.o
22 acx100_pci.o: $(objects)
23 ld $(LDFLAGS) -o $@ $^
25 $(objects): ../include/version.h \
26 ../include/p80211hdr.h \
27 ../include/p80211mgmt.h \
28 ../include/p80211msg.h \
29 ../include/p80211ioctl.h \
30 ../include/acx100.h \
31 ../include/p80211conv.h \
32 ../include/p80211netdev.h \
33 ../include/p80211req.h \
34 ../include/p80211types.h \
35 ../include/acx100_helper.h \
36 ../include/acx100_helper2.h \
37 ../include/idma.h \
38 ../include/ihw.h \
39 ../include/acx100mgmt.h
41 clean:
42 rm -f $(objects) acx100_pci.o *~ ../include/*~ ../scripts/*~
44 endif