grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / devs / networks / intelpro100 / Makefile
blob0eaa8c0ed5b5a96c045d6e4a77221c27b86c0a43
1 CFLAGS = -msmall-code -O0 -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 = intelpro100.device
9 OBJS = device.o unit.o request.o pci.o prometheus.o powerpci.o
10 HDRS = device.h endian.h io.h
12 all: $(DEV_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) startup.o: $(MAKEFILE) $(HDRS)
22 $(OBJS): $(HDRS)
23 unit.o: intelpro100.h mii.h dp83840.h
24 pci.o: io.h
25 pci.o prometheus.o powerpci.o: pci.h
27 install: all
28 Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
29 Flush "$(DEV_NAME)"
31 clean:
32 Delete "$(DEV_NAME)" "#?.o"