docs
[mirrors/Programs.git] / c / ghetto-sound-system / Makefile
CommitLineData
867995e4 1sdl_BIN=sampler synth
f2e16dc5 2alsa_BIN=beatdetect midi-rx
867995e4
H
3
4#sdl_CFLAGS+=-lSDL_sound -lSDL -lSDL_mixer
5sdl_CFLAGS+=$(shell sdl-config --cflags --libs) -lSDL_mixer
6sdl_CFLAGS+=-lm #synth
7alsa_CFLAGS+=-lasound
8
233e34bb 9.PHONY: all clean sdl alsa go midi
867995e4 10all: sdl alsa
233e34bb 11 echo .gitignore $(sdl_BIN) $(alsa_BIN) ftdi-midi | tr ' ' '\n' > .gitignore
867995e4 12clean:
bab27111 13 rm .gitignore $(sdl_BIN) $(alsa_BIN)
867995e4
H
14
15sdl:
16 $(MAKE) CFLAGS+="$(sdl_CFLAGS)" $(sdl_BIN)
867995e4
H
17alsa:
18 $(MAKE) CFLAGS="$(alsa_CFLAGS)" $(alsa_BIN)
19
233e34bb
TM
20midi:
21 $(MAKE) CFLAGS="-lftdi -lasound" ftdi-midi
22
51baeaf5 23
51baeaf5
H
24go: sampler
25 ./$? samples/*/* 2>/dev/null
This page took 0.271985 seconds and 4 git commands to generate.