diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-05-30 03:01:38 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-05-30 03:01:38 +0000 |
commit | 47729b52cb85e8a52bf2e6bbf8ee9a810ed331e1 (patch) | |
tree | b001d3f3bdf3539d928535e47a965c72f7044a26 /pd/portmidi/Makefile | |
parent | fcba84c01167d5be4e4ed70619fda85cb63804fe (diff) |
Add new portmidi and update portaudio. CHanges to makefile.nt and various
sources. Checking that I'm in sync with "help" file changes. I ended
up deleting help files in extra and recreating them under the new names.
svn path=/trunk/; revision=3091
Diffstat (limited to 'pd/portmidi/Makefile')
-rw-r--r-- | pd/portmidi/Makefile | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/pd/portmidi/Makefile b/pd/portmidi/Makefile new file mode 100644 index 00000000..7a87606d --- /dev/null +++ b/pd/portmidi/Makefile @@ -0,0 +1,77 @@ +# MAKEFILE FOR PORTMIDI AND PORTTIME
+
+
+# For debugging, define PM_CHECK_ERRORS
+PMFLAGS = -DPM_CHECK_ERRORS
+# Otherwise do not define PM_CHECK_ERRORS
+# PMFLAGS =
+
+# Use this for linux alsa (0.9x) version
+versions = pm_linux/pmlinuxalsa.o
+ALSALIB = -lasound
+VFLAGS = -DPMALSA
+
+# Use this for null (a dummy implementation for no Midi I/O:
+# versions = pmlinuxnull.o
+# ALSALIB =
+# VFLAGS = -DPMNULL
+
+pmlib = pm_linux/libportmidi.a
+
+ptlib = porttime/libporttime.a
+
+CC = gcc $(VFLAGS) $(PMFLAGS) -g -Ipm_common -Iporttime
+
+pmobjects = pm_common/pmutil.o $(versions) pm_linux/pmlinux.o \
+ pm_common/portmidi.o pm_linux/pmlinuxalsa.o
+
+ptobjects = porttime/porttime.o porttime/ptlinux.o
+
+current: all
+
+all: $(pmlib) $(ptlib) pm_test/test pm_test/sysex pm_test/midithread \
+ pm_test/latency pm_test/midithru
+
+$(pmlib): Makefile $(pmobjects)
+ ar -cr $(pmlib) $(pmobjects)
+
+$(ptlib): Makefile $(ptobjects)
+ ar -cr $(ptlib) $(ptobjects)
+
+pm_linux/pmlinuxalsa.o: Makefile pm_linux/pmlinuxalsa.c pm_linux/pmlinuxalsa.h
+ $(CC) -c pm_linux/pmlinuxalsa.c -o pm_linux/pmlinuxalsa.o
+
+pm_test/test: Makefile pm_test/test.o $(pmlib) $(ptlib)
+ $(CC) pm_test/test.c -o pm_test/test $(pmlib) $(ptlib) $(ALSALIB)
+
+pm_test/sysex: Makefile pm_test/sysex.o $(pmlib) $(ptlib)
+ $(CC) pm_test/sysex.c -o pm_test/sysex $(pmlib) $(ptlib) $(ALSALIB)
+
+pm_test/midithread: Makefile pm_test/midithread.o $(pmlib) $(ptlib)
+ $(CC) pm_test/midithread.c -o pm_test/midithread \
+ $(pmlib) $(ptlib) $(ALSALIB)
+
+pm_test/latency: Makefile $(ptlib) pm_test/latency.o
+ $(CC) pm_test/latency.c -o pm_test/latency $(pmlib) $(ptlib) \
+ $(ALSALIB) -lpthread -lm
+
+pm_test/midithru: Makefile $(ptlib) pm_test/midithru.o
+ $(CC) pm_test/midithru.c -o pm_test/midithru $(pmlib) $(ptlib) \
+ $(ALSALIB) -lpthread -lm
+
+porttime/ptlinux.o: Makefile porttime/ptlinux.c
+ $(CC) -c porttime/ptlinux.c -o porttime/ptlinux.o
+
+clean:
+ rm -f *.o *~ core* */*.o */*~ */core* pm_test/*/pm_dll.dll
+ rm -f *.opt *.ncb *.plg pm_win/Debug/pm_dll.lib pm_win/Release/pm_dll.lib
+ rm -f pm_test/*.opt pm_test/*.ncb
+
+cleaner: clean
+
+cleanest: cleaner
+ rm -f $(pmlib) $(ptlib) pm_test/test pm_test/sysex pm_test/midithread
+ rm -f pm_test/latency pm_test/midithru
+
+backup: cleanest
+ cd ..; zip -r portmidi.zip portmidi
|