aboutsummaryrefslogtreecommitdiff
path: root/oscbonjour/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'oscbonjour/makefile')
-rw-r--r--oscbonjour/makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/oscbonjour/makefile b/oscbonjour/makefile
new file mode 100644
index 0000000..4c4eb8c
--- /dev/null
+++ b/oscbonjour/makefile
@@ -0,0 +1,46 @@
+PD-PATH=/usr/lib/pd
+PD-SRC=/usr/local/include
+ZEROCONF-SRC=../zeroconf
+
+CC = g++
+LD = g++
+INCLUDE=-I$(PD-SRC) -I$(ZEROCONF-SRC) -I.
+LIB=-lc -lm
+CC_FLAGS = -DPD -c -Wall -fPIC -O3
+LD_FLAGS = --export-dynamic -shared -o
+
+
+TARGET=oscbonjour.pd_linux
+OBJ=oscbonjour.o
+
+
+#--------------------------------------------------------
+
+all: pd_linux
+
+pd_linux: $(TARGET)
+
+
+$(TARGET): $(OBJ)
+ $(LD) $(LD_FLAGS) $(TARGET) $(OBJ) $(LIB)
+ strip --strip-unneeded $(TARGET)
+ chmod 755 $(TARGET)
+
+oscbonjour.o:
+ $(CC) $(CC_FLAGS) $(INCLUDE) oscbonjour.cpp
+#TinyXML:
+
+#tinyxml.o: tinyxml/tinyxml.h tinyxml/tinyxml.cpp
+# $(CC) $(CC_FLAGS) $(INCLUDE) tinyxml/tinyxml.cpp
+
+
+#-----------------------------------------------------
+
+
+clean:
+ rm -f $(OBJ) $(TARGET)
+
+
+install:
+ cp -f $(TARGET) $(PD-PATH)/externs
+ cp -f help/*.pd $(PD-PATH)/doc/5.reference