Mercurial > pmdwin
comparison Makefile @ 1:83859b2e2bae
Add build instructions for a shared library.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 21 May 2013 10:37:21 +0200 |
parents | c55ea9478c80 |
children | da588a3fb3cc |
comparison
equal
deleted
inserted
replaced
0:c55ea9478c80 | 1:83859b2e2bae |
---|---|
6 AUDIO_DRV = oss_audio.o | 6 AUDIO_DRV = oss_audio.o |
7 # AUDIO_DRV = alsa_pcm_api.o | 7 # AUDIO_DRV = alsa_pcm_api.o |
8 # CFLAGS += -DUSE_ALSA=1 | 8 # CFLAGS += -DUSE_ALSA=1 |
9 # AUDIO_DRV = wave_out.o | 9 # AUDIO_DRV = wave_out.o |
10 | 10 |
11 all: pmdwin | 11 all: pmdwin libpmdwin.so |
12 %.o: %.c | 12 %.o: %.c |
13 $(CC) $(CFLAGS) -c $< | 13 $(CC) $(CFLAGS) -c $< |
14 | 14 |
15 %.o: %.cc | 15 %.o: %.cpp |
16 $(CXX) $(CXXFLAGS) -c $< | 16 $(CXX) $(CXXFLAGS) -c $< |
17 | 17 |
18 clean: | 18 clean: |
19 rm *.o pmdwin | 19 rm -f *.o pmdwin libpmdwin.so |
20 | 20 |
21 pmdwin: pmd_play.o pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o | 21 pmdwin: pmd_play.o pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o |
22 $(CC) -o $@ $^ | 22 $(CC) -o $@ $^ |
23 | 23 |
24 libpmdwin.so: pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o | |
25 $(CC) -shared -o $@ $^ |