CFLAGS = -O

all: happykeys arpeggiate crudeLooch mixit poems poemify
	cd luke; make all
	cd motif; make all

happykeys: happykeys.c
	cc ${CFLAGS} -o happykeys happykeys.c -lcurses

arpeggiate: arpeggiate.c
	cc ${CFLAGS} -o arpeggiate arpeggiate.c

crudeLooch: crudeLooch.c
	cc ${CFLAGS} -o crudeLooch crudeLooch.c

mixit: mixit.c
	cc ${CFLAGS} -o mixit mixit.c

poems: poems.c
	cc ${CFLAGS} -o poems poems.c -lcurses

poemify: poemify.c
	cc ${CFLAGS} -o poemify poemify.c

clean:
	rm -f *.o happykeys arpeggiate poems; cd motif; make clean; 
	cd luke; make clean
