Changeset 4656 for pjproject/trunk/pjsip-apps/build/Samples.mak
- Timestamp:
- Nov 23, 2013 7:13:40 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/build/Samples.mak
r4440 r4656 1 1 include ../../build.mak 2 include ../../version.mak 2 3 include ../../build/common.mak 3 4 5 RULES_MAK := $(PJDIR)/build/rules.mak 4 6 5 7 ############################################################################### … … 17 19 aviplay \ 18 20 aectest \ 19 aviplay \20 21 clidemo \ 21 22 confsample \ … … 46 47 vid_streamutil 47 48 48 EXES := $(foreach file, $(SAMPLES), $( BINDIR)/$(file)$(HOST_EXE))49 EXES := $(foreach file, $(SAMPLES), $(file)$(HOST_EXE)) 49 50 50 all: $(BINDIR) $(OBJDIR)$(EXES)51 .PHONY: $(EXES) 51 52 52 $(BINDIR)/%$(HOST_EXE): $(OBJDIR)/%$(OBJEXT) $(PJ_LIB_FILES) 53 $(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$@) \ 54 $(subst /,$(HOST_PSEP),$<) \ 55 $(_LDFLAGS) 53 all: $(EXES) 56 54 57 $(OBJDIR)/%$(OBJEXT): $(SRCDIR)/%.c 58 $(CC) $(_CFLAGS) \ 59 $(CC_OUT)$(subst /,$(HOST_PSEP),$@) \ 60 $(subst /,$(HOST_PSEP),$<) 61 62 $(OBJDIR): 63 $(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR)) 64 65 $(BINDIR): 66 $(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR)) 55 $(EXES): 56 $(MAKE) --no-print-directory -f $(RULES_MAK) SAMPLE_SRCDIR=$(SRCDIR) SAMPLE_OBJS=$@.o SAMPLE_CFLAGS="$(_CFLAGS)" SAMPLE_LDFLAGS="$(_LDFLAGS)" SAMPLE_EXE=$@ APP=SAMPLE app=sample $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 67 57 68 58 depend: 69 59 70 60 clean: 71 $(subst @@,$(subst /,$(HOST_PSEP),$(OBJDIR)/*),$(HOST_RMR)) 72 $(subst @@,$(subst /,$(HOST_PSEP),$(OBJDIR)),$(HOST_RMDIR)) 61 $(MAKE) -f $(RULES_MAK) APP=SAMPLE app=sample $@ 73 62 $(subst @@,$(EXES),$(HOST_RM)) 74 rm -rf $(BINDIR)63 $(subst @@,$(BINDIR),$(HOST_RMDIR)) 75 64 76 65 distclean realclean: clean 77 # $(subst @@,$(subst /,$(HOST_PSEP),$(EXES)) $(subst /,$(HOST_PSEP),$(EXES)),$(HOST_RM)) 78 # $(subst @@,$(DEP_FILE),$(HOST_RM)) 66 $(MAKE) -f $(RULES_MAK) APP=SAMPLE app=sample $@ 79 67
Note: See TracChangeset
for help on using the changeset viewer.