revert between 56095 -> 55830 in arch
[AROS.git] / workbench / devs / networks / prism2 / Makefile.OS4
blobf1b9ccc5456b10df7ec444eeff860e521806d558
1 CFLAGS = -O3 -Wall -Wno-uninitialized -Wno-parentheses -D__USE_INLINE__\
2  -D__USE_BASETYPE__ -D__NOLIBBASE__ -D__NOGLOBALIFACE__
3 CC = gcc $(CFLAGS)
4 MAKEFILE = Makefile.OS4
5 #LINKER = ld -e Main -s -lauto
6 LINKER = gcc -nostdlib
7 AMIGA_LIB = -lamiga
8 #C_LIB = -lauto
10 DEV_NAME = prism2.device
11 OBJS = os4_device.o device.o unit.o encryption.o request.o pci.o\
12  expansion.o pccard.o timer.o
13 HDRS = device.h wireless.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: prism2.h
28 pci.o expansion.o: pci.h
30 install: all
31         Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
32         Avail FLUSH >NIL:
34 test: all
35         NetShutdown
36         Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
37         Avail FLUSH >NIL:
38         AddNetInterface prism2
40 clean:
41         Delete "$(DEV_NAME)" "#?.o"