comparison Makefile @ 0:c55ea9478c80

Hello Gensokyo!
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 21 May 2013 10:29:21 +0200
parents
children 83859b2e2bae
comparison
equal deleted inserted replaced
-1:000000000000 0:c55ea9478c80
1 CC = gcc
2 CFLAGS += -Ifmgen -Wall -pipe -O2 -fno-math-errno -fno-omit-frame-pointer -fno-asynchronous-unwind-tables
3 CXXFLAGS += -Ifmgen -Wall -Wno-write-strings -pipe -O2 -fno-math-errno -fno-exceptions -fno-rtti -fno-omit-frame-pointer -fno-asynchronous-unwind-tables
4
5 # Uncomment exactly one of the following:
6 AUDIO_DRV = oss_audio.o
7 # AUDIO_DRV = alsa_pcm_api.o
8 # CFLAGS += -DUSE_ALSA=1
9 # AUDIO_DRV = wave_out.o
10
11 all: pmdwin
12 %.o: %.c
13 $(CC) $(CFLAGS) -c $<
14
15 %.o: %.cc
16 $(CXX) $(CXXFLAGS) -c $<
17
18 clean:
19 rm *.o pmdwin
20
21 pmdwin: pmd_play.o pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o
22 $(CC) -o $@ $^
23