Changeset 4656 for pjproject/trunk/pjsip-apps/build/Makefile
- Timestamp:
- Nov 23, 2013 7:13:40 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/build/Makefile
r4637 r4656 2 2 include $(PJDIR)/build/common.mak 3 3 4 export LIBDIR := ../lib 5 export BINDIR := ../bin 4 6 5 7 RULES_MAK := $(PJDIR)/build/rules.mak … … 28 30 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 29 31 $(HOST_CXXFLAGS) $(CXXFLAGS) 32 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 33 $(APP_LDFLAGS) $(APP_LDLIBS) $(LDFLAGS) 30 34 31 35 ############################################################################### … … 38 42 export PJSUA_CFLAGS += $(_CFLAGS) 39 43 export PJSUA_CXXFLAGS += $(_CXXFLAGS) 40 export PJSUA_LDFLAGS += $( APP_LDFLAGS) $(APP_LDLIBS) $(LDFLAGS)41 export PJSUA_EXE:= ../bin/pjsua-$(TARGET_NAME)$(HOST_EXE)44 export PJSUA_LDFLAGS += $(_LDFLAGS) 45 export PJSUA_EXE:=pjsua-$(TARGET_NAME)$(HOST_EXE) 42 46 43 47 … … 50 54 export PJSYSTEST_CFLAGS += $(_CFLAGS) 51 55 export PJSYSTEST_CXXFLAGS += $(_CXXFLAGS) 52 export PJSYSTEST_LDFLAGS += $( APP_LDFLAGS) $(APP_LDLIBS) $(LDFLAGS)53 export PJSYSTEST_EXE:= ../bin/pjsystest-$(TARGET_NAME)$(HOST_EXE)56 export PJSYSTEST_LDFLAGS += $(_LDFLAGS) 57 export PJSYSTEST_EXE:=pjsystest-$(TARGET_NAME)$(HOST_EXE) 54 58 55 59 … … 59 63 # 60 64 # 61 TARGETS := pjsua pjsystestsamples65 TARGETS := $(BINDIR)/$(PJSUA_EXE) $(BINDIR)/$(PJSYSTEST_EXE) samples 62 66 63 67 all: $(TARGETS) … … 68 72 distclean: realclean 69 73 70 .PHONY: dep depend clean realclean distclean74 .PHONY: all dep depend clean realclean distclean 71 75 .PHONY: $(TARGETS) 72 76 .PHONY: $(PJSUA_EXE) $(PJSYSTEST_EXE) … … 74 78 pjsua: $(PJSUA_EXE) 75 79 $(PJSUA_EXE): 76 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $( PJSUA_EXE)80 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 77 81 78 82 pjsystest: $(PJSYSTEST_EXE) 79 83 $(PJSYSTEST_EXE): 80 $(MAKE) -f $(RULES_MAK) APP=PJSYSTEST app=pjsystest $( PJSYSTEST_EXE)84 $(MAKE) -f $(RULES_MAK) APP=PJSYSTEST app=pjsystest $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 81 85 82 86 samples: 83 87 $(MAKE) -f Samples.mak 84 88 85 .PHONY: ../lib/pjsua.ko86 ../lib/pjsua.ko:87 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $ @89 .PHONY: pjsua.ko 90 pjsua.ko: 91 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 88 92 89 93 clean depend realclean: … … 92 96 $(MAKE) -f Samples.mak $@ 93 97 @if test "$@" = "depend"; then \ 94 echo '$( PJSUA_EXE): $(APP_LIB_FILES)' >> .pjsua-$(TARGET_NAME).depend; \95 echo '$( PJSYSTEST_EXE): $(APP_LIB_FILES)' >> .pjsystest-$(TARGET_NAME).depend; \98 echo '$(BINDIR)/$(PJSUA_EXE): $(APP_LIB_FILES)' >> .pjsua-$(TARGET_NAME).depend; \ 99 echo '$(BINDIR)/$(PJSYSTEST_EXE): $(APP_LIB_FILES)' >> .pjsystest-$(TARGET_NAME).depend; \ 96 100 fi 97 101
Note: See TracChangeset
for help on using the changeset viewer.