Mercurial > pmdwin
annotate Makefile @ 4:c8875256b767
Use stdio for console output, update usage, and use sensible exit values.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 21 May 2013 12:10:27 +0200 |
parents | 83859b2e2bae |
children | da588a3fb3cc |
rev | line source |
---|---|
0 | 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 | |
1
83859b2e2bae
Add build instructions for a shared library.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
11 all: pmdwin libpmdwin.so |
0 | 12 %.o: %.c |
13 $(CC) $(CFLAGS) -c $< | |
14 | |
1
83859b2e2bae
Add build instructions for a shared library.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
15 %.o: %.cpp |
0 | 16 $(CXX) $(CXXFLAGS) -c $< |
17 | |
18 clean: | |
1
83859b2e2bae
Add build instructions for a shared library.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
19 rm -f *.o pmdwin libpmdwin.so |
0 | 20 |
21 pmdwin: pmd_play.o pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o | |
22 $(CC) -o $@ $^ | |
23 | |
1
83859b2e2bae
Add build instructions for a shared library.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
24 libpmdwin.so: pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o |
83859b2e2bae
Add build instructions for a shared library.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
25 $(CC) -shared -o $@ $^ |