paulo@1: JACK_CFLAGS := $(shell pkg-config --cflags jack) paulo@1: JACK_LDFLAGS := $(shell pkg-config --libs jack) paulo@1: paulo@1: CFLAGS = -g -Wall ${JACK_CFLAGS} paulo@1: LDFLAGS = ${JACK_LDFLAGS} paulo@1: paulo@1: CC = gcc paulo@1: paulo@2: SRC = lsonify.c paulo@1: OBJ = ${SRC:.c=.o} paulo@1: paulo@1: TARGET := lsonify paulo@1: paulo@1: .PHONY: all clean options paulo@1: paulo@1: all: options ${TARGET} paulo@1: paulo@1: options: paulo@1: @echo build options: paulo@1: @echo "CFLAGS = ${CFLAGS}" paulo@1: @echo "LDFLAGS = ${LDFLAGS}" paulo@1: @echo "CC = ${CC}" paulo@1: paulo@1: %.o: %.c paulo@1: @echo CC $< paulo@1: @${CC} -c ${CFLAGS} $< paulo@1: paulo@1: clean: paulo@1: @echo rm ${OBJ} ${TARGET} paulo@1: @rm ${OBJ} ${TARGET} paulo@1: paulo@1: ${TARGET}: ${OBJ} paulo@1: @echo CC -o $@ paulo@1: @${CC} -o $@ ${OBJ} ${LDFLAGS} paulo@1: