Ghetto soundsystem: new flexible Makefile
[mirrors/Programs.git] / c / ghetto-sound-system / Makefile
1 sdl_BIN=sampler synth
2 alsa_BIN=beatdetect
3
4 #sdl_CFLAGS+=-lSDL_sound -lSDL -lSDL_mixer
5 sdl_CFLAGS+=$(shell sdl-config --cflags --libs) -lSDL_mixer
6 sdl_CFLAGS+=-lm #synth
7 alsa_CFLAGS+=-lasound
8
9 .PHONY: all clean sdl alsa go
10 all: sdl alsa
11 clean:
12 rm $(sdl_BIN) $(alsa_BIN)
13
14 sdl:
15 $(MAKE) CFLAGS+="$(sdl_CFLAGS)" $(sdl_BIN)
16
17 alsa:
18 $(MAKE) CFLAGS="$(alsa_CFLAGS)" $(alsa_BIN)
19
20
21 go: sampler
22 ./$? samples/*/* 2>/dev/null
This page took 0.209576 seconds and 4 git commands to generate.