Mercurial > hg > index.fcgi > lsonify > lsonify-1pba
annotate 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 |
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@1 | 9 SRC = metro.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 |