Mercurial > pmdwin
comparison Makefile @ 6:da588a3fb3cc
Make pmdwin a dynamically linked executable.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 08 Sep 2014 17:15:41 +0200 |
parents | 83859b2e2bae |
children | ceda140f42fb |
comparison
equal
deleted
inserted
replaced
5:c4218fbe158f | 6:da588a3fb3cc |
---|---|
14 | 14 |
15 %.o: %.cpp | 15 %.o: %.cpp |
16 $(CXX) $(CXXFLAGS) -c $< | 16 $(CXX) $(CXXFLAGS) -c $< |
17 | 17 |
18 clean: | 18 clean: |
19 rm -f *.o pmdwin libpmdwin.so | 19 $(RM) *.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 libpmdwin.so |
22 $(CC) -o $@ $^ | 22 $(CC) -L. -lpmdwin -o $@ pmd_play.o |
23 | 23 |
24 libpmdwin.so: pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o | 24 libpmdwin.so: pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o |
25 $(CC) -shared -o $@ $^ | 25 $(CC) -shared -o $@ $^ |