Ignore:
Timestamp:
May 1, 2009 10:05:13 AM (16 years ago)
Author:
bennylp
Message:

Ticket #810 and part of #706: changed samples output directory to bin/samples/$TARGET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/build/Samples.mak

    r2592 r2669  
    1212SRCDIR := ../src/samples 
    1313OBJDIR := ./output/samples-$(TARGET_NAME) 
    14 BINDIR := ../bin/samples 
     14BINDIR := ../bin/samples/$(TARGET_NAME) 
    1515 
    1616SAMPLES := auddemo \ 
     
    3838           tonegen 
    3939 
    40 EXES := $(foreach file, $(SAMPLES), $(BINDIR)/$(file)-$(TARGET_NAME)$(HOST_EXE)) 
     40EXES := $(foreach file, $(SAMPLES), $(BINDIR)/$(file)$(HOST_EXE)) 
    4141 
    42 all: $(OBJDIR) $(EXES) 
     42all: $(BINDIR) $(OBJDIR) $(EXES) 
    4343 
    44 $(BINDIR)/%-$(TARGET_NAME)$(HOST_EXE): $(OBJDIR)/%$(OBJEXT) $(PJ_LIB_FILES) 
     44$(BINDIR)/%$(HOST_EXE): $(OBJDIR)/%$(OBJEXT) $(PJ_LIB_FILES) 
    4545        $(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$@) \ 
    4646            $(subst /,$(HOST_PSEP),$<) \ 
     
    5555        $(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR))  
    5656 
     57$(BINDIR): 
     58        $(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR))  
     59 
    5760depend: 
    5861 
     
    6164        $(subst @@,$(subst /,$(HOST_PSEP),$(OBJDIR)),$(HOST_RMDIR)) 
    6265        $(subst @@,$(EXES),$(HOST_RM)) 
     66        rm -rf $(BINDIR) 
    6367 
    6468distclean realclean: clean 
Note: See TracChangeset for help on using the changeset viewer.