# Makefile PREFIX?= /usr/local OBJS= main.o vm.o dmx.o midi.o beatdetect.o fft.o map3d.o mouse.o SRCS= main.c vm.c dmx.c midi.c beatdetect.c fft.c map3d.c mouse.c COMMONOBJS= mem.o hash.o COMMONDIR= ../common INCDIR= ../include CFLAGS+= -Wall -Werror CPPFLAGS+= -I${INCDIR} LDLIBS+= -lm PROGOBJS= ${OBJS} ${COMMONOBJS:S/^/${COMMONDIR}\//} lsi: ${OBJS} ${LINK.c} -o ${.TARGET} ${PROGOBJS} ${LDLIBS} install: lsi ${INSTALL} -d ${PREFIX}/bin ${INSTALL} -c lsi ${PREFIX}/bin/lsi depend: mkdep -- ${CFLAGS} ${CPPFLAGS} ${SRCS} clean: rm -f ${OBJS} lsi