1 CFLAGS
= -msmall-code
-O2
-ansi
-Wall
-Wno-uninitialized
-Wno-parentheses
4 LINKER
= ld -e _Main
-s
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
)
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
28 Copy
"$(DEV_NAME)" "DEVS:networks/" CLONE
30 Copy
$(CMD_NAME
) C
: CLONE
33 Delete
"$(DEV_NAME)" "#?.o"