Mercurial > pmdwin
changeset 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 | 34086e667cc7 |
files | Makefile |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile +++ b/Makefile @@ -8,16 +8,18 @@ AUDIO_DRV = oss_audio.o # CFLAGS += -DUSE_ALSA=1 # AUDIO_DRV = wave_out.o -all: pmdwin +all: pmdwin libpmdwin.so %.o: %.c $(CC) $(CFLAGS) -c $< -%.o: %.cc +%.o: %.cpp $(CXX) $(CXXFLAGS) -c $< clean: - rm *.o pmdwin + rm -f *.o pmdwin libpmdwin.so pmdwin: pmd_play.o pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o $(CC) -o $@ $^ +libpmdwin.so: pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o + $(CC) -shared -o $@ $^