AHI: build Alsa driver when alsa-bridge link lib is detected
[AROS.git] / workbench / devs / networks / prism2 / Makefile
blob08e0752d00b047aad355c76eccb52542478ee2b5
1 CFLAGS = -msmall-code -O2 -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 = prism2.device
9 OBJS = device.o unit.o encryption.o encryption_68k.o request.o pci.o\
10 prometheus.o powerpci.o pccard.o timer.o
11 HDRS = device.h wireless.h io.h
12 OBJS += registration.o
14 all: $(DEV_NAME)
16 .c.o :
17 $(CC) -c $<
19 $(DEV_NAME): $(MAKEFILE) $(OBJS)
20 $(LINKER) $(OBJS) $(AMIGA_LIB) $(C_LIB) -o $(DEV_NAME)
21 Protect "$(DEV_NAME)" "-e"
23 $(OBJS) startup.o: $(MAKEFILE)
24 $(OBJS) startup.o: $(HDRS)
25 unit.o: prism2.h
26 pci.o prometheus.o powerpci.o: pci.h
28 install: all
29 Copy "$(DEV_NAME)" "DEVS:networks/" CLONE
30 Flush "$(DEV_NAME)"
31 Copy $(CMD_NAME) C: CLONE
33 clean:
34 Delete "$(DEV_NAME)" "#?.o" $(CMD_NAME)