Ignore:
Timestamp:
Apr 22, 2009 1:37:11 PM (12 years ago)
Author:
nanang
Message:

#792: Updated samples makefile to sync output file name format as other projects, removed Mixed Platform from VS Solution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/vs-reorg/pjsip-apps/build/Samples-vc.mak

    r2559 r2637  
    22LIBEXT = .lib 
    33 
     4TARGET = i386-win32-vs$(VC_VER)-$(BUILD_MODE) 
     5 
    46!if "$(BUILD_MODE)" == "debug" 
    5 TARGET = i386-win32-vc$(VC_VER)-debug 
     7BUILD_FLAGS = /MTd /Od /Zi /W4 
     8!elseif "$(BUILD_MODE)" == "debug-static" 
    69BUILD_FLAGS = /MTd /Od /Zi /W4 
    710!elseif "$(BUILD_MODE)" == "debug-dynamic" 
    8 TARGET = i386-win32-vc$(VC_VER)-debug 
    911BUILD_FLAGS = /MDd /Od /Zi /W4 
    1012!elseif "$(BUILD_MODE)" == "release-static" 
    11 TARGET = i386-win32-vc$(VC_VER)-release 
    1213BUILD_FLAGS = /Ox /MT /DNDEBUG /W4 
    13 !else 
    14 TARGET = i386-win32-vc$(VC_VER)-$(BUILD_MODE) 
     14!elseif "$(BUILD_MODE)" == "release-dynamic" 
    1515BUILD_FLAGS = /Ox /MD /DNDEBUG /W4 
    1616!endif 
     
    8787$(SAMPLES): $(SRCDIR)\$(@B).c $(LIBS) $(SRCDIR)\util.h Samples-vc.mak 
    8888        cl -nologo -c $(SRCDIR)\$(@B).c /Fo$(OBJDIR)\$(@B).obj $(CFLAGS)  
    89         cl /nologo $(OBJDIR)\$(@B).obj /Fe$@ /Fm$(OBJDIR)\$(@B).map $(LDFLAGS) 
     89        cl /nologo $(OBJDIR)\$(@B).obj /Fe$(BINDIR)\$(@B)-$(TARGET).exe /Fm$(OBJDIR)\$(@B).map $(LDFLAGS) 
     90        @rem del /Q $(BINDIR)\*$(TARGET).ilk 
     91        @rem del /Q $(BINDIR)\*$(TARGET).pdb 
    9092 
    9193$(OBJDIR): 
     
    9496clean: 
    9597        echo Cleaning up samples... 
    96         if exist $(BINDIR) del /Q $(BINDIR)\*.* 
     98        if exist $(BINDIR) del /Q $(BINDIR)\*$(TARGET).* 
    9799        if exist $(OBJDIR) del /Q $(OBJDIR)\*.* 
    98100 
Note: See TracChangeset for help on using the changeset viewer.