Changeset 4656 for pjproject/trunk/pjlib-util/build/Makefile
- Timestamp:
- Nov 23, 2013 7:13:40 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/build/Makefile
r4637 r4656 7 7 include $(PJDIR)/build/common.mak 8 8 9 export LIBDIR := ../lib 10 export BINDIR := ../bin 11 9 12 RULES_MAK := $(PJDIR)/build/rules.mak 10 13 11 14 PJLIB_LIB:=$(PJDIR)/pjlib/lib/libpj-$(TARGET_NAME)$(LIBEXT) 12 export PJLIB_UTIL_LIB:=../lib/libpjlib-util-$(TARGET_NAME)$(LIBEXT) 15 16 export PJLIB_UTIL_LIB := libpjlib-util-$(TARGET_NAME)$(LIBEXT) 17 18 ifeq ($(PJ_SHARED_LIBRARIES),) 19 else 20 export PJLIB_UTIL_SONAME := libpjlib-util.$(SHLIB_SUFFIX) 21 export PJLIB_UTIL_SHLIB := $(PJLIB_UTIL_SONAME).$(PJ_VERSION_MAJOR) 22 endif 13 23 14 24 ############################################################################### … … 19 29 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 20 30 $(HOST_CXXFLAGS) $(CXXFLAGS) 21 export _LDFLAGS := $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 22 $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) \ 23 $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 24 $(LDFLAGS) 31 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 32 $(APP_LDFLAGS) $(LDFLAGS) 25 33 26 34 ############################################################################### … … 36 44 export PJLIB_UTIL_CFLAGS += $(_CFLAGS) 37 45 export PJLIB_UTIL_CXXFLAGS += $(_CXXFLAGS) 46 export PJLIB_UTIL_LDFLAGS += $(PJLIB_LDLIB) $(_LDFLAGS) 38 47 39 48 ############################################################################### … … 45 54 export UTIL_TEST_CFLAGS += $(_CFLAGS) 46 55 export UTIL_TEST_CXXFLAGS += $(_CXXFLAGS) 47 export UTIL_TEST_LDFLAGS += $( _LDFLAGS)48 export UTIL_TEST_EXE:= ../bin/pjlib-util-test-$(TARGET_NAME)$(HOST_EXE)56 export UTIL_TEST_LDFLAGS += $(PJLIB_UTIL_LDLIB) $(PJLIB_LDLIB) $(_LDFLAGS) 57 export UTIL_TEST_EXE:=pjlib-util-test-$(TARGET_NAME)$(HOST_EXE) 49 58 50 59 … … 55 64 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 56 65 # 57 TARGETS := pjlib-util pjlib-util-test66 TARGETS := $(PJLIB_UTIL_LIB) $(PJLIB_UTIL_SONAME) $(UTIL_TEST_EXE) 58 67 59 68 all: $(TARGETS) … … 73 82 distclean: realclean 74 83 75 .PHONY: dep depend clean realclean distclean84 .PHONY: all dep depend clean realclean distclean 76 85 .PHONY: $(TARGETS) 77 .PHONY: $(PJLIB_UTIL_LIB) $(UTIL_TEST_EXE) 86 .PHONY: $(PJLIB_UTIL_LIB) $(PJLIB_UTIL_SONAME) 87 .PHONY: $(UTIL_TEST_EXE) 78 88 79 pjlib-util: $(PJLIB_UTIL_LIB) 80 $(PJLIB_UTIL_LIB): 81 $(MAKE) -f $(RULES_MAK) APP=PJLIB_UTIL app=pjlib-util $(PJLIB_UTIL_LIB) 89 pjlib-util: $(PJLIB_UTIL_LIB) $(PJLIB_UTIL_SONAME) 90 $(PJLIB_UTIL_SONAME): $(PJLIB_UTIL_LIB) 91 $(PJLIB_UTIL_LIB) $(PJLIB_UTIL_SONAME): $(PJLIB_LIB) $(PJLIB_SONAME) 92 $(MAKE) -f $(RULES_MAK) APP=PJLIB_UTIL app=pjlib-util $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 82 93 83 94 pjlib-util-test: $(UTIL_TEST_EXE) 84 $(UTIL_TEST_EXE): $(PJLIB_UTIL_LIB) 85 $(MAKE) -f $(RULES_MAK) APP=UTIL_TEST app=pjlib-util-test $( UTIL_TEST_EXE)95 $(UTIL_TEST_EXE): $(PJLIB_UTIL_LIB) $(PJLIB_UTIL_SONAME) 96 $(MAKE) -f $(RULES_MAK) APP=UTIL_TEST app=pjlib-util-test $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 86 97 87 .PHONY: ../lib/pjlib-util.ko88 ../lib/pjlib-util.ko:98 .PHONY: pjlib-util.ko 99 pjlib-util.ko: 89 100 echo Making $@ 90 $(MAKE) -f $(RULES_MAK) APP=PJLIB_UTIL app=pjlib-util $ @101 $(MAKE) -f $(RULES_MAK) APP=PJLIB_UTIL app=pjlib-util $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 91 102 92 .PHONY: ../lib/pjlib-util-test.ko93 ../lib/pjlib-util-test.ko:94 $(MAKE) -f $(RULES_MAK) APP=UTIL_TEST app=pjlib-util-test $ @103 .PHONY: pjlib-util-test.ko 104 pjlib-util-test.ko: 105 $(MAKE) -f $(RULES_MAK) APP=UTIL_TEST app=pjlib-util-test $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 95 106 96 107 clean: … … 107 118 $(MAKE) -f $(RULES_MAK) APP=PJLIB_UTIL app=pjlib-util $@ 108 119 $(MAKE) -f $(RULES_MAK) APP=UTIL_TEST app=pjlib-util-test $@ 109 echo '$( UTIL_TEST_EXE):$(PJLIB_UTIL_LIB) $(PJLIB_LIB)' >> .pjlib-util-test-$(TARGET_NAME).depend; \120 echo '$(BINDIR)/$(UTIL_TEST_EXE): $(LIBDIR)/$(PJLIB_UTIL_LIB) $(PJLIB_LIB)' >> .pjlib-util-test-$(TARGET_NAME).depend; \ 110 121 111
Note: See TracChangeset
for help on using the changeset viewer.