changeset 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 c4218fbe158f
children ceda140f42fb
files Makefile
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile
+++ b/Makefile
@@ -16,10 +16,10 @@ all: pmdwin libpmdwin.so
 	$(CXX) $(CXXFLAGS) -c $<
 
 clean:
-	rm -f *.o pmdwin libpmdwin.so
+	$(RM) *.o pmdwin libpmdwin.so
 
-pmdwin: pmd_play.o pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o
-	$(CC) -o $@ $^
+pmdwin: pmd_play.o libpmdwin.so
+	$(CC) -L. -lpmdwin -o $@ pmd_play.o
 
 libpmdwin.so: pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o
 	$(CC) -shared -o $@ $^