Commit | Line | Data |
---|---|---|
867995e4 | 1 | sdl_BIN=sampler synth |
f2e16dc5 | 2 | alsa_BIN=beatdetect midi-rx |
867995e4 H |
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 | ||
233e34bb | 9 | .PHONY: all clean sdl alsa go midi |
867995e4 | 10 | all: sdl alsa |
233e34bb | 11 | echo .gitignore $(sdl_BIN) $(alsa_BIN) ftdi-midi | tr ' ' '\n' > .gitignore |
867995e4 | 12 | clean: |
bab27111 | 13 | rm .gitignore $(sdl_BIN) $(alsa_BIN) |
867995e4 H |
14 | |
15 | sdl: | |
16 | $(MAKE) CFLAGS+="$(sdl_CFLAGS)" $(sdl_BIN) | |
867995e4 H |
17 | alsa: |
18 | $(MAKE) CFLAGS="$(alsa_CFLAGS)" $(alsa_BIN) | |
19 | ||
233e34bb TM |
20 | midi: |
21 | $(MAKE) CFLAGS="-lftdi -lasound" ftdi-midi | |
22 | ||
51baeaf5 | 23 | |
51baeaf5 H |
24 | go: sampler |
25 | ./$? samples/*/* 2>/dev/null |