view Makefile @ 2:ff028323c114

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