Changeset 2669 for pjproject/trunk
- Timestamp:
- May 1, 2009 10:05:13 AM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/build
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/build/Samples-vc.mak
r2664 r2669 56 56 SRCDIR = ..\src\samples 57 57 OBJDIR = .\output\samples-$(TARGET) 58 BINDIR = ..\bin\samples 58 BINDIR = ..\bin\samples\$(TARGET) 59 59 60 60 … … 85 85 86 86 87 all: $( OBJDIR) $(SAMPLES)87 all: $(BINDIR) $(OBJDIR) $(SAMPLES) 88 88 89 89 $(SAMPLES): $(SRCDIR)\$(@B).c $(LIBS) $(SRCDIR)\util.h Samples-vc.mak 90 90 cl -nologo -c $(SRCDIR)\$(@B).c /Fo$(OBJDIR)\$(@B).obj $(CFLAGS) 91 cl /nologo $(OBJDIR)\$(@B).obj /Fe$ (BINDIR)\$(@B)-$(TARGET).exe/Fm$(OBJDIR)\$(@B).map $(LDFLAGS)91 cl /nologo $(OBJDIR)\$(@B).obj /Fe$@ /Fm$(OBJDIR)\$(@B).map $(LDFLAGS) 92 92 @rem the following two lines is just for cleaning up the 'bin' directory 93 if exist $(BINDIR)\*$(TARGET).ilk del /Q $(BINDIR)\*$(TARGET).ilk 94 if exist $(BINDIR)\*$(TARGET).pdb del /Q $(BINDIR)\*$(TARGET).pdb 93 if exist $(BINDIR)\*.ilk del /Q $(BINDIR)\*.ilk 94 if exist $(BINDIR)\*.pdb del /Q $(BINDIR)\*.pdb 95 96 $(BINDIR): 97 if not exist $(BINDIR) mkdir $(BINDIR) 95 98 96 99 $(OBJDIR): … … 99 102 clean: 100 103 echo Cleaning up samples... 101 if exist $(BINDIR) del /Q $(BINDIR)\*$(TARGET).* 104 if exist $(BINDIR) del /Q $(BINDIR)\* 105 if exist $(BINDIR) rmdir $(BINDIR) 102 106 if exist $(OBJDIR) del /Q $(OBJDIR)\*.* 103 107 -
pjproject/trunk/pjsip-apps/build/Samples.mak
r2592 r2669 12 12 SRCDIR := ../src/samples 13 13 OBJDIR := ./output/samples-$(TARGET_NAME) 14 BINDIR := ../bin/samples 14 BINDIR := ../bin/samples/$(TARGET_NAME) 15 15 16 16 SAMPLES := auddemo \ … … 38 38 tonegen 39 39 40 EXES := $(foreach file, $(SAMPLES), $(BINDIR)/$(file) -$(TARGET_NAME)$(HOST_EXE))40 EXES := $(foreach file, $(SAMPLES), $(BINDIR)/$(file)$(HOST_EXE)) 41 41 42 all: $( OBJDIR) $(EXES)42 all: $(BINDIR) $(OBJDIR) $(EXES) 43 43 44 $(BINDIR)/% -$(TARGET_NAME)$(HOST_EXE): $(OBJDIR)/%$(OBJEXT) $(PJ_LIB_FILES)44 $(BINDIR)/%$(HOST_EXE): $(OBJDIR)/%$(OBJEXT) $(PJ_LIB_FILES) 45 45 $(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$@) \ 46 46 $(subst /,$(HOST_PSEP),$<) \ … … 55 55 $(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR)) 56 56 57 $(BINDIR): 58 $(subst @@,$(subst /,$(HOST_PSEP),$@),$(HOST_MKDIR)) 59 57 60 depend: 58 61 … … 61 64 $(subst @@,$(subst /,$(HOST_PSEP),$(OBJDIR)),$(HOST_RMDIR)) 62 65 $(subst @@,$(EXES),$(HOST_RM)) 66 rm -rf $(BINDIR) 63 67 64 68 distclean realclean: clean
Note: See TracChangeset
for help on using the changeset viewer.