annotate Makefile @ 2:ff028323c114

rename metro.c to lsonify.c
author paulo@localhost
date Thu, 21 May 2009 00:00:49 -0700
parents 46d4c88917a2
children
rev   line source
paulo@1 1 JACK_CFLAGS := $(shell pkg-config --cflags jack)
paulo@1 2 JACK_LDFLAGS := $(shell pkg-config --libs jack)
paulo@1 3
paulo@1 4 CFLAGS = -g -Wall ${JACK_CFLAGS}
paulo@1 5 LDFLAGS = ${JACK_LDFLAGS}
paulo@1 6
paulo@1 7 CC = gcc
paulo@1 8
paulo@2 9 SRC = lsonify.c
paulo@1 10 OBJ = ${SRC:.c=.o}
paulo@1 11
paulo@1 12 TARGET := lsonify
paulo@1 13
paulo@1 14 .PHONY: all clean options
paulo@1 15
paulo@1 16 all: options ${TARGET}
paulo@1 17
paulo@1 18 options:
paulo@1 19 @echo build options:
paulo@1 20 @echo "CFLAGS = ${CFLAGS}"
paulo@1 21 @echo "LDFLAGS = ${LDFLAGS}"
paulo@1 22 @echo "CC = ${CC}"
paulo@1 23
paulo@1 24 %.o: %.c
paulo@1 25 @echo CC $<
paulo@1 26 @${CC} -c ${CFLAGS} $<
paulo@1 27
paulo@1 28 clean:
paulo@1 29 @echo rm ${OBJ} ${TARGET}
paulo@1 30 @rm ${OBJ} ${TARGET}
paulo@1 31
paulo@1 32 ${TARGET}: ${OBJ}
paulo@1 33 @echo CC -o $@
paulo@1 34 @${CC} -o $@ ${OBJ} ${LDFLAGS}
paulo@1 35