Ignore:
Timestamp:
Mar 20, 2008 7:21:27 PM (17 years ago)
Author:
bennylp
Message:

More ticket #485: updated Makefiles and fixed compilation warnings with gcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/build/Makefile

    r1877 r1882  
    3232export PJNATH_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 
    3333                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 
    3536export PJNATH_CFLAGS += $(_CFLAGS) 
    3637 
     
    4647         
    4748############################################################################### 
    48 # Defines for building test client application 
     49# Defines for building TURN client application 
    4950# 
    50 export PJSTUN_CLIENT_SRCDIR = ../src/pjstun-client 
    51 export PJSTUN_CLIENT_OBJS += client_main.o 
    52 export PJSTUN_CLIENT_CFLAGS += $(_CFLAGS) 
    53 export PJSTUN_CLIENT_LDFLAGS += $(_LDFLAGS) 
    54 export PJSTUN_CLIENT_EXE:=../bin/pjstun-client-$(TARGET_NAME)$(HOST_EXE) 
     51export PJTURN_CLIENT_SRCDIR = ../src/pjturn-client 
     52export PJTURN_CLIENT_OBJS += client_main.o 
     53export PJTURN_CLIENT_CFLAGS += $(_CFLAGS) 
     54export PJTURN_CLIENT_LDFLAGS += $(_LDFLAGS) 
     55export PJTURN_CLIENT_EXE:=../bin/pjturn-client-$(TARGET_NAME)$(HOST_EXE) 
    5556 
    5657############################################################################### 
    57 # Defines for building test server application 
     58# Defines for building TURN server application 
    5859# 
    59 export PJSTUN_SRV_TEST_SRCDIR = ../src/pjstun-srv-test 
    60 export PJSTUN_SRV_TEST_OBJS +=  bind_usage.o server.o turn_usage.o usage.o \ 
     60export PJTURN_SRV_SRCDIR = ../src/pjturn-srv 
     61export PJTURN_SRV_OBJS +=       allocation.o auth.o listener_udp.o server.o \ 
    6162                                main.o 
    62 export PJSTUN_SRV_TEST_CFLAGS += $(_CFLAGS) 
    63 export PJSTUN_SRV_TEST_LDFLAGS += $(_LDFLAGS) 
    64 export PJSTUN_SRV_TEST_EXE:=../bin/pjstun-srv-test-$(TARGET_NAME)$(HOST_EXE) 
     63export PJTURN_SRV_CFLAGS += $(_CFLAGS) 
     64export PJTURN_SRV_LDFLAGS += $(_LDFLAGS) 
     65export PJTURN_SRV_EXE:=../bin/pjturn-srv-$(TARGET_NAME)$(HOST_EXE) 
    6566 
    6667         
     
    7273# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    7374# 
    74 TARGETS := pjnath pjnath-test  
    75 #pjstun-client pjstun-srv-test 
     75TARGETS := pjnath pjnath-test pjturn-client pjturn-srv 
    7676 
    7777all: $(TARGETS) 
     
    9191        $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $(PJNATH_TEST_EXE) 
    9292 
    93 pjstun-client: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB) 
    94         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_CLIENT app=pjstun-client $(PJSTUN_CLIENT_EXE) 
     93pjturn-client: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB) 
     94        $(MAKE) -f $(RULES_MAK) APP=PJTURN_CLIENT app=pjturn-client $(PJTURN_CLIENT_EXE) 
    9595 
    96 pjstun-srv-test: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB) 
    97         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_SRV_TEST app=pjstun-srv-test $(PJSTUN_SRV_TEST_EXE) 
     96pjturn-srv: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB) 
     97        $(MAKE) -f $(RULES_MAK) APP=PJTURN_SRV app=pjturn-srv $(PJTURN_SRV_EXE) 
    9898 
    9999.PHONY: ../lib/pjnath.ko 
     
    109109        $(MAKE) -f $(RULES_MAK) APP=PJNATH app=pjnath $@ 
    110110        $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $@ 
    111         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_CLIENT app=pjstun-client $@ 
    112         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_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 $@ 
    113113 
    114114realclean: 
    115115        $(subst @@,$(subst /,$(HOST_PSEP),.pjnath-$(TARGET_NAME).depend),$(HOST_RMR)) 
    116116        $(subst @@,$(subst /,$(HOST_PSEP),.pjnath-test-$(TARGET_NAME).depend),$(HOST_RMR)) 
    117         $(subst @@,$(subst /,$(HOST_PSEP),.pjstun-client-$(TARGET_NAME).depend),$(HOST_RMR)) 
    118         $(subst @@,$(subst /,$(HOST_PSEP),.pjstun-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)) 
    119119        $(MAKE) -f $(RULES_MAK) APP=PJNATH app=pjnath $@ 
    120120        $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $@ 
    121         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_CLIENT app=pjstun-client $@ 
    122         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_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 $@ 
    123123 
    124124depend: 
    125125        $(MAKE) -f $(RULES_MAK) APP=PJNATH app=pjnath $@ 
    126126        $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $@ 
    127         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_CLIENT app=pjstun-client $@ 
    128         $(MAKE) -f $(RULES_MAK) APP=PJSTUN_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 $@ 
    129129        echo '$(TEST_EXE): $(PJNATH_LIB)' >> .pjnath-test-$(TARGET_NAME).depend; \ 
    130130 
Note: See TracChangeset for help on using the changeset viewer.