-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (39 loc) · 1.01 KB
/
Makefile
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
47
48
49
50
51
52
53
54
55
#Modify this to point to the PJSIP location.
PJBASE=../pjproject-2.5.5
include $(PJBASE)/build.mak
#Set to 1 for debug builds
DEBUG := 0
ifeq ($(DEBUG),1)
CFLAGSD := -g -Og
LDFLAGSD := -g -Og
LDLIBSD :=
else
CFLAGSD :=
LDFLAGSD :=
LDLIBSD :=
endif
CC = $(PJ_CC)
LDFLAGS = $(PJ_LDFLAGS) $(LDFLAGSD)
LXXFLAGS = $(PJ_LDXXFLAGS) $(LDFLAGSD)
LDLIBS = $(PJ_LDLIBS) $(LDFLIBSD)
LXXLIBS = $(PJ_LDXXLIBS) $(LDFLIBSD)
CFLAGS = $(PJ_CFLAGS) $(CFLAGSD) -I../tclap/include
#CPPFLAGS= ${CFLAGS} $(CFLAGSD) -I../tclap/include
CPPFLAGS= $(PJ_CXXFLAGS) $(CFLAGSD) -I../tclap/include
appname := sipcallnotify
SRCDIR := ./src
srcfiles := $(shell find $(SRCDIR) -name "*.cpp")
objects := $(patsubst %.cpp, %.o, $(srcfiles))
all: $(appname)
$(appname): $(objects)
$(CC) -o $@ $< $(CPPFLAGS) $(LXXFLAGS) $(LDFLAGS) $(LXXLIBS) $(LDLIBS)
depend: .depend
.depend: $(srcfiles)
rm -f ./.depend
g++ $(CPPFLAGS) -MM $^>>./.depend;
clean:
rm -f $(objects)
rm -f $(appname)
dist-clean: clean
rm -f *~ .depend
include .depend