Changeset 1882 for pjproject/trunk/pjnath/build/Makefile
- Timestamp:
- Mar 20, 2008 7:21:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/build/Makefile
r1877 r1882 32 32 export PJNATH_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 33 33 errno.o ice_session.o ice_strans.o nat_detect.o stun_auth.o \ 34 stun_msg.o stun_msg_dump.o stun_session.o stun_transaction.o 34 stun_msg.o stun_msg_dump.o stun_session.o stun_transaction.o \ 35 turn_session.o turn_udp.o 35 36 export PJNATH_CFLAGS += $(_CFLAGS) 36 37 … … 46 47 47 48 ############################################################################### 48 # Defines for building testclient application49 # Defines for building TURN client application 49 50 # 50 export PJ STUN_CLIENT_SRCDIR = ../src/pjstun-client51 export PJ STUN_CLIENT_OBJS += client_main.o52 export PJ STUN_CLIENT_CFLAGS += $(_CFLAGS)53 export PJ STUN_CLIENT_LDFLAGS += $(_LDFLAGS)54 export PJ STUN_CLIENT_EXE:=../bin/pjstun-client-$(TARGET_NAME)$(HOST_EXE)51 export PJTURN_CLIENT_SRCDIR = ../src/pjturn-client 52 export PJTURN_CLIENT_OBJS += client_main.o 53 export PJTURN_CLIENT_CFLAGS += $(_CFLAGS) 54 export PJTURN_CLIENT_LDFLAGS += $(_LDFLAGS) 55 export PJTURN_CLIENT_EXE:=../bin/pjturn-client-$(TARGET_NAME)$(HOST_EXE) 55 56 56 57 ############################################################################### 57 # Defines for building testserver application58 # Defines for building TURN server application 58 59 # 59 export PJ STUN_SRV_TEST_SRCDIR = ../src/pjstun-srv-test60 export PJ STUN_SRV_TEST_OBJS += bind_usage.o server.o turn_usage.o usage.o \60 export PJTURN_SRV_SRCDIR = ../src/pjturn-srv 61 export PJTURN_SRV_OBJS += allocation.o auth.o listener_udp.o server.o \ 61 62 main.o 62 export PJ STUN_SRV_TEST_CFLAGS += $(_CFLAGS)63 export PJ STUN_SRV_TEST_LDFLAGS += $(_LDFLAGS)64 export PJ STUN_SRV_TEST_EXE:=../bin/pjstun-srv-test-$(TARGET_NAME)$(HOST_EXE)63 export PJTURN_SRV_CFLAGS += $(_CFLAGS) 64 export PJTURN_SRV_LDFLAGS += $(_LDFLAGS) 65 export PJTURN_SRV_EXE:=../bin/pjturn-srv-$(TARGET_NAME)$(HOST_EXE) 65 66 66 67 … … 72 73 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 73 74 # 74 TARGETS := pjnath pjnath-test 75 #pjstun-client pjstun-srv-test 75 TARGETS := pjnath pjnath-test pjturn-client pjturn-srv 76 76 77 77 all: $(TARGETS) … … 91 91 $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $(PJNATH_TEST_EXE) 92 92 93 pj stun-client: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB)94 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_CLIENT app=pjstun-client $(PJSTUN_CLIENT_EXE)93 pjturn-client: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB) 94 $(MAKE) -f $(RULES_MAK) APP=PJTURN_CLIENT app=pjturn-client $(PJTURN_CLIENT_EXE) 95 95 96 pj stun-srv-test: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB)97 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_SRV_TEST app=pjstun-srv-test $(PJSTUN_SRV_TEST_EXE)96 pjturn-srv: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB) 97 $(MAKE) -f $(RULES_MAK) APP=PJTURN_SRV app=pjturn-srv $(PJTURN_SRV_EXE) 98 98 99 99 .PHONY: ../lib/pjnath.ko … … 109 109 $(MAKE) -f $(RULES_MAK) APP=PJNATH app=pjnath $@ 110 110 $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $@ 111 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_CLIENT app=pjstun-client $@112 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_SRV_TEST app=pjstun-srv-test$@111 $(MAKE) -f $(RULES_MAK) APP=PJTURN_CLIENT app=pjturn-client $@ 112 $(MAKE) -f $(RULES_MAK) APP=PJTURN_SRV app=pjturn-srv $@ 113 113 114 114 realclean: 115 115 $(subst @@,$(subst /,$(HOST_PSEP),.pjnath-$(TARGET_NAME).depend),$(HOST_RMR)) 116 116 $(subst @@,$(subst /,$(HOST_PSEP),.pjnath-test-$(TARGET_NAME).depend),$(HOST_RMR)) 117 $(subst @@,$(subst /,$(HOST_PSEP),.pj stun-client-$(TARGET_NAME).depend),$(HOST_RMR))118 $(subst @@,$(subst /,$(HOST_PSEP),.pj stun-srv-test-$(TARGET_NAME).depend),$(HOST_RMR))117 $(subst @@,$(subst /,$(HOST_PSEP),.pjturn-client-$(TARGET_NAME).depend),$(HOST_RMR)) 118 $(subst @@,$(subst /,$(HOST_PSEP),.pjturn-srv-$(TARGET_NAME).depend),$(HOST_RMR)) 119 119 $(MAKE) -f $(RULES_MAK) APP=PJNATH app=pjnath $@ 120 120 $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $@ 121 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_CLIENT app=pjstun-client $@122 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_SRV_TEST app=pjstun-srv-test$@121 $(MAKE) -f $(RULES_MAK) APP=PJTURN_CLIENT app=pjturn-client $@ 122 $(MAKE) -f $(RULES_MAK) APP=PJTURN_SRV app=pjturn-srv $@ 123 123 124 124 depend: 125 125 $(MAKE) -f $(RULES_MAK) APP=PJNATH app=pjnath $@ 126 126 $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $@ 127 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_CLIENT app=pjstun-client $@128 $(MAKE) -f $(RULES_MAK) APP=PJ STUN_SRV_TEST app=pjstun-srv-test$@127 $(MAKE) -f $(RULES_MAK) APP=PJTURN_CLIENT app=pjturn-client $@ 128 $(MAKE) -f $(RULES_MAK) APP=PJTURN_SRV app=pjturn-srv $@ 129 129 echo '$(TEST_EXE): $(PJNATH_LIB)' >> .pjnath-test-$(TARGET_NAME).depend; \ 130 130
Note: See TracChangeset
for help on using the changeset viewer.