Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / networks / realtek8180 / Makefile
blob6461c2b134d95daebebf5337fd4f4db91a08ce7b
1 CFLAGS = -msmall-code -O2 -ansi -Wall -Wno-uninitialized -Wno-parentheses
2 CC = gcc $(CFLAGS)
3 MAKEFILE = Makefile
4 LINKER = ld -e _Main -s
5 AMIGA_LIB = -lamiga
6 C_LIB = -lnix/libnix13
8 DEV_NAME = realtek8180.device
9 OBJS = device.o unit.o crypto.o request.o pci.o prometheus.o powerpci.o
10 HDRS = device.h wireless.h io.h
12 all: $(DEV_NAME) $(CMD_NAME)
14 .c.o :
15 $(CC) -c $<
17 $(DEV_NAME): $(MAKEFILE) $(OBJS)
18 $(LINKER) $(OBJS) $(AMIGA_LIB) $(C_LIB) -o $(DEV_NAME)
19 Protect "$(DEV_NAME)" "-e"
21 $(OBJS) $(CMD_NAME).o startup.o: $(MAKEFILE)
22 $(OBJS) startup.o: $(HDRS)
23 $(CMD_NAME).o: wireless.h
24 unit.o radio.o eeprom: realtek8187.h
25 pci.o prometheus.o powerpci.o: pci.h
27 install: all
28 Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
29 Flush "$(DEV_NAME)"
30 Copy $(CMD_NAME) C: CLONE
32 clean:
33 Delete "$(DEV_NAME)" "#?.o"