aboutsummaryrefslogtreecommitdiff
path: root/oscbonjour/makefile
blob: 4c4eb8c37c9f7837b0d4044e664515d812b1a507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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