view Makefile @ 1:46d4c88917a2

add Makefile; rename string to refer to "lsonify" instead of jack_metro; connect to physical input ports on startup
author paulo@localhost
date Sun, 17 May 2009 02:32:01 -0700
parents
children ff028323c114
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 = metro.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}