2011-11-14 15:13:02 +00:00
|
|
|
|
2012-09-17 13:19:05 +00:00
|
|
|
MUSIC_FILES := $(basename $(wildcard f*.c))
|
|
|
|
TMP_FILES := $(wildcard *~) $(wildcard *.o)
|
2012-09-20 01:33:31 +00:00
|
|
|
CFLAGS +=
|
|
|
|
LDFLAGS += -static -s
|
2012-09-17 13:19:05 +00:00
|
|
|
all: $(MUSIC_FILES)
|
2011-11-14 15:13:02 +00:00
|
|
|
|
2012-09-17 13:19:05 +00:00
|
|
|
audio.o: audio.c audio.h
|
2012-11-19 19:42:33 +00:00
|
|
|
sounds.o: sounds.c sounds.h
|
2012-09-17 13:19:05 +00:00
|
|
|
|
2012-11-19 19:42:33 +00:00
|
|
|
%: %.c audio.o sounds.o
|
2012-09-20 01:33:31 +00:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
2011-11-14 15:13:02 +00:00
|
|
|
|
|
|
|
clean:
|
2012-09-17 13:19:05 +00:00
|
|
|
rm -rf $(MUSIC_FILES) $(TMP_FILES)
|
2011-11-14 15:13:02 +00:00
|
|
|
|