Makefile 1.42 KB
#
# Makefile for reverb test programs
#

REVERB_OBJECTS = 	allpass.o \
			comb.o \
			apcomb.o \
			delay.o \
			lowpass.o \
			lpcomb.o \
			revmain.o \
			output.o

OPTIMIZER = -g
# OPTIMIZER = -sopt-inline

TARGETS = HALverb LEXverb 3DOverb SNESverb JAMverb TAPDAPverb

LDLIBSS = -lm

default: $(TARGETS)



HALverb: $(REVERB_OBJECTS) HALverb.o
	$(CC) $(OPTIMIZER) HALverb.o $(REVERB_OBJECTS) $(LDLIBS) -o $@

LEXverb: $(REVERB_OBJECTS) LEXverb.o
	$(CC) $(OPTIMIZER) LEXverb.o $(REVERB_OBJECTS) $(LDLIBS) -o $@

3DOverb: $(REVERB_OBJECTS) 3DOverb.o
	$(CC) $(OPTIMIZER) 3DOverb.o $(REVERB_OBJECTS) $(LDLIBS) -o $@

SNESverb: $(REVERB_OBJECTS) SNESverb.o
	$(CC) $(OPTIMIZER) SNESverb.o $(REVERB_OBJECTS) $(LDLIBS) -o $@

JAMverb: $(REVERB_OBJECTS) JAMverb.o
	$(CC) $(OPTIMIZER) JAMverb.o $(REVERB_OBJECTS) $(LDLIBS) -o $@

TAPDAPverb: $(REVERB_OBJECTS) TAPDAPverb.o
	$(CC) $(OPTIMIZER) TAPDAPverb.o $(REVERB_OBJECTS) $(LDLIBS) -o $@



# Dependencies

allpass.o:	allpass.h allpass.c
comb.o:		comb.h comb.c
apcomb.o:	apcomb.h apcomb.c
delay.o:	delay.h delay.c
lowpass.o:	lowpass.h lowpass.c
lpcomb.o:	lpcomb.h lpcomb.c
revmain.o:	revmain.h revmain.c
output.o:	output.c
HALverb.o:	HALverb.h HALverb.c
LEXverb.o:	LEXverb.h LEXverb.c
SNESverb.o:	SNESverb.h SNESverb.c
3DOverb.o:	3DOverb.h 3DOverb.c
JAMverb.o:	JAMverb.h JAMverb.c
TAPDAPverb.o:	TAPDAPverb.h TAPDAPverb.c

# Rules
.c.o:
	$(CC) -c $(OPTIMIZER) $<

clean:
	rm -f a.out core *.u *.o *~ *verb