Changeset 4656 for pjproject/trunk/pjlib/build
- Timestamp:
- Nov 23, 2013 7:13:40 AM (11 years ago)
- Location:
- pjproject/trunk/pjlib/build
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/build/Makefile
r4637 r4656 3 3 include $(PJDIR)/build/common.mak 4 4 5 export LIBDIR := ../lib 6 export BINDIR := ../bin 7 5 8 RULES_MAK := $(PJDIR)/build/rules.mak 6 9 10 export PJLIB_LIB := libpj-$(TARGET_NAME)$(LIBEXT) 7 11 8 export PJLIB_LIB := ../lib/libpj-$(TARGET_NAME)$(LIBEXT) 12 ifeq ($(PJ_SHARED_LIBRARIES),) 13 else 14 export PJLIB_SONAME := libpj.$(SHLIB_SUFFIX) 15 export PJLIB_SHLIB := $(PJLIB_SONAME).$(PJ_VERSION_MAJOR) 16 endif 9 17 10 18 ############################################################################### … … 15 23 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 16 24 $(HOST_CXXFLAGS) $(CXXFLAGS) 17 export _LDFLAGS := $( subst /,$(HOST_PSEP),$(PJLIB_LIB)) \18 $( CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \19 $(LDFLAGS) 25 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 26 $(APP_LDFLAGS) $(LDFLAGS) 27 20 28 21 29 ############################################################################### … … 32 40 export PJLIB_CFLAGS += $(_CFLAGS) 33 41 export PJLIB_CXXFLAGS += $(_CXXFLAGS) 42 export PJLIB_LDFLAGS += $(_LDFLAGS) 34 43 35 44 ############################################################################### … … 47 56 export TEST_CFLAGS += $(_CFLAGS) 48 57 export TEST_CXXFLAGS += $(_CXXFLAGS) 49 export TEST_LDFLAGS += $( _LDFLAGS)50 export TEST_EXE := ../bin/pjlib-test-$(TARGET_NAME)$(HOST_EXE)58 export TEST_LDFLAGS += $(PJLIB_LDLIB) $(_LDFLAGS) 59 export TEST_EXE := pjlib-test-$(TARGET_NAME)$(HOST_EXE) 51 60 52 61 53 62 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT 54 63 ############################################################################### … … 77 86 $(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib depend 78 87 $(MAKE) -f $(RULES_MAK) APP=TEST app=pjlib-test depend 79 echo '$( TEST_EXE):$(PJLIB_LIB)' >> .pjlib-test-$(TARGET_NAME).depend88 echo '$(BINDIR)/$(TEST_EXE): $(LIBDIR)/$(PJLIB_LIB)' >> .pjlib-test-$(TARGET_NAME).depend 80 89 81 90 82 .PHONY: dep depend clean realclean distclean91 .PHONY: all dep depend clean realclean distclean 83 92 .PHONY: $(TARGETS) 84 .PHONY: $(PJLIB_LIB) $(TEST_EXE) 93 .PHONY: $(PJLIB_LIB) $(PJLIB_SONAME) 94 .PHONY: $(TEST_EXE) 85 95 86 96 dep: depend … … 88 98 pjlib: $(PJLIB_LIB) 89 99 $(PJLIB_LIB): ../include/pj/config_site.h 90 $(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib $(PJLIB_LIB) 100 101 $(PJLIB_SONAME): $(PJLIB_LIB) 102 $(PJLIB_LIB) $(PJLIB_SONAME): 103 $(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 91 104 92 105 ../include/pj/config_site.h: … … 94 107 95 108 pjlib-test: $(TEST_EXE) 96 $(TEST_EXE): $(PJLIB_LIB) 97 $(MAKE) -f $(RULES_MAK) APP=TEST app=pjlib-test $( TEST_EXE)109 $(TEST_EXE): $(PJLIB_LIB) $(PJLIB_SONAME) 110 $(MAKE) -f $(RULES_MAK) APP=TEST app=pjlib-test $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 98 111 99 .PHONY: ../lib/pjlib.ko100 ../lib/pjlib.ko:112 .PHONY: pjlib.ko 113 pjlib.ko: 101 114 echo Making $@ 102 $(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib $ @115 $(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 103 116 104 .PHONY: ../lib/pjlib-test.ko105 ../lib/pjlib-test.ko:106 $(MAKE) -f $(RULES_MAK) APP=TEST app=pjlib-test $ @117 .PHONY: pjlib-test.ko 118 pjlib-test.ko: 119 $(MAKE) -f $(RULES_MAK) APP=TEST app=pjlib-test $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 107 120 108 121 clean: -
pjproject/trunk/pjlib/build/os-auto.mak.in
r3295 r4656 30 30 # operating system. 31 31 # 32 export TARGETS = pjlib pjlib-test32 export TARGETS = $(PJLIB_LIB) $(PJLIB_SONAME) $(TEST_EXE) 33 33 34 34 -
pjproject/trunk/pjlib/build/os-darwinos.mak
r447 r4656 34 34 # operating system. 35 35 # 36 export TARGETS = pjlib pjlib-test36 export TARGETS = $(PJLIB_LIB) $(PJLIB_SONAME) $(TEST_EXE) 37 37 -
pjproject/trunk/pjlib/build/os-linux-kernel.mak
r65 r4656 43 43 # operating system. 44 44 # 45 export TARGETS := ../lib/pjlib.ko ../lib/pjlib-test.ko45 export TARGETS := pjlib.ko pjlib-test.ko 46 46 47 47 -
pjproject/trunk/pjlib/build/os-linux.mak
r447 r4656 36 36 # operating system. 37 37 # 38 export TARGETS = pjlib pjlib-test38 export TARGETS = $(PJLIB_LIB) $(PJLIB_SONAME) $(TEST_EXE) 39 39 -
pjproject/trunk/pjlib/build/os-rtems.mak
r433 r4656 41 41 # operating system. 42 42 # 43 export TARGETS = pjlib pjlib-test43 export TARGETS = $(PJLIB_LIB) $(TEST_EXE) 44 44 45 45 -
pjproject/trunk/pjlib/build/os-sunos.mak
r447 r4656 33 33 # operating system. 34 34 # 35 export TARGETS = pjlib pjlib-test35 export TARGETS = $(PJLIB_LIB) $(PJLIB_SONAME) $(TEST_EXE) 36 36 -
pjproject/trunk/pjlib/build/os-win32.mak
r3052 r4656 30 30 # operating system. 31 31 # 32 export TARGETS = pjlib pjlib-test32 export TARGETS = $(PJLIB_LIB) $(TEST_EXE) 33 33
Note: See TracChangeset
for help on using the changeset viewer.