revert between 56095 -> 55830 in arch
[AROS.git] / workbench / devs / networks / etherlink3 / Makefile.OS4
blob6d1cc45fc0c852ef9370e03cf0e92f45daf59ab1
1 CFLAGS = -O3 -Wall -Wno-uninitialized -Wno-parentheses \
2         -D__USE_INLINE__ -D__USE_BASETYPE__ -D__NOLIBBASE__ \
3         -D__NOGLOBALIFACE__
4 CC = gcc $(CFLAGS)
5 MAKEFILE = Makefile.OS4
6 #LINKER = ld -e Main -s -lauto
7 LINKER = gcc -nostdlib
8 #AMIGA_LIB = -lamiga
9 #C_LIB = -lauto
11 DEV_NAME = etherlink3.device
12 OBJS = os4_device.o device.o unit.o request.o pci.o expansion.o pccard.o
13 HDRS = device.h endian.h io.h
15 all: $(DEV_NAME)
17 .c.o :
18         $(CC) -c $<
20 $(DEV_NAME): $(MAKEFILE) startup.o $(OBJS)
21         $(LINKER) startup.o $(OBJS) $(AMIGA_LIB) $(C_LIB) -o $(DEV_NAME)
22         strip $(DEV_NAME)
23         Protect "$(DEV_NAME)" "-e"
25 $(OBJS): $(MAKEFILE) $(HDRS)
27 unit.o: etherlink3.h mii.h
28 pci.o expansion.o: pci.h
30 install: all
31         Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
32         Avail FLUSH >NIL:
34 clean:
35         Delete "$(DEV_NAME)" "#?.o"