Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / networks / atheros5000 / Makefile.MOS
blob4214b1dc13f97b38fbadfd8d21805d32b3ac0c17
1 CFLAGS = -O2 -Wall -Wno-uninitialized -Wno-parentheses -D__NOLIBBASE__
2 CC = gcc $(CFLAGS)
3 MAKEFILE = Makefile.MOS
4 #LINKER = ld -e Main -s
5 LINKER = gcc -s -noixemul
6 AMIGA_LIB = -labox
8 DEV_NAME = atheros5000.device
9 OBJS = mos_device.o device.o unit.o encryption.o request.o pci.o openpci.o\
10  hal.o halsupport.o
11 HDRS = device.h wireless.h io.h
13 all: $(DEV_NAME)
15 .c.o :
16         $(CC) -c $<
18 $(DEV_NAME): $(MAKEFILE) startup.o $(OBJS)
19         $(LINKER) startup.o $(OBJS) $(AMIGA_LIB) -o $(DEV_NAME)
20         Protect "$(DEV_NAME)" "-e"
22 $(OBJS) startup.o: $(MAKEFILE) $(HDRS)
23 $(OBJS): $(HDRS)
24 pci.o openpci.o: pci.h
26 install: all
27         Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
28         Flush "$(DEV_NAME)"
30 clean:
31         Delete "$(DEV_NAME)" "#?.o"