CSRCS=time_fn.c msf.c util.c main.c signal.c sync.c audio.c HSRCS=time_fn.h project.h PROG=msf LIBS=-lm CPPFLAGS= AO_CFLAGS=$(shell pkg-config --cflags ao) AO_LIBS=$(shell pkg-config --libs ao) AO_CFLAGS=-Iprefix/include AO_LIBS=prefix/lib/libao.a LIBS+=$(AO_LIBS) CPPFLAGS+=$(AO_CFLAGS) CC=x86_64-w64-mingw32-gcc ##################### OBJS=${CSRCS:%.c=%.o} CFLAGS=-Wall ${CPPFLAGS} CPROTO=cproto DEPFLAGS = -MT $@ -MMD -MP -MF $*.d ${PROG}:${OBJS} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} %.o:%.c ${CC} ${CFLAGS} ${DEPFLAGS} -c -o $@ $< protos: echo -n > prototypes.h ${CPROTO} ${CPPFLAGS} -v -e ${CSRCS} > prototypes.h.new cat prototypes.h.new > prototypes.h /bin/rm -f prototypes.h.new clean: /bin/rm -f *% *~ ${OBJS} ${PROG} *.d *.orig tidy: astyle -A3 -s2 --attach-extern-c -L -c -w -Y -m0 -f -p -H -U -k3 -xj -xd ${CSRCS} ${HSRCS} ${LXCSRCS} -include $(patsubst %,%.d,$(basename $(CSRCS)))