grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / devs / networks / realtek8180 / Makefile.MOS
blob7697e0057c8466ccfc84bfa7bafa578a34485ad5
1 CFLAGS = -O2 -Wall -Wno-uninitialized -Wno-parentheses -D__NOLIBBASE__ -DUSE_INLINE_STDARG
2 CC = gcc $(CFLAGS)
3 MAKEFILE = Makefile.MOS
4 LINKER = ld -e Main -s
5 AMIGA_LIB = -labox
7 DEV_NAME = realtek8180.device
8 OBJS = mos_device.o device.o unit.o encryption.o request.o usb.o radio.o\
9  eeprom.o timer.o
10 HDRS = device.h wireless.h io.h
12 all: $(DEV_NAME)
14 .c.o :
15         $(CC) -c $<
17 $(DEV_NAME): $(MAKEFILE) startup.o $(OBJS)
18         $(LINKER) startup.o $(OBJS) $(AMIGA_LIB) -o $(DEV_NAME)
19         Protect "$(DEV_NAME)" "-e"
21 $(OBJS) startup.o: $(MAKEFILE) $(HDRS)
22 $(OBJS): $(HDRS)
23 unit.o radio.o eeprom.o: realtek8187.h
25 install: all
26         Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
27         Flush "$(DEV_NAME)"
29 clean:
30         Delete "$(DEV_NAME)" "#?.o"