msvc: move {i,p}db creation to object directory

avoids cluttering the source tree.

Change-Id: I2885b36dd7152e294536584fa5cfe3ae8b04c7fa
This commit is contained in:
James Zern 2012-02-21 16:41:23 -08:00
parent 237c9aa727
commit d9acddc010

View File

@ -66,6 +66,7 @@ DIROBJ = $(DIRBASE)\obj
DIRLIB = $(DIRBASE)\lib DIRLIB = $(DIRBASE)\lib
DIRINC = $(DIRBASE)\include DIRINC = $(DIRBASE)\include
DIRBIN = $(DIRBASE)\bin DIRBIN = $(DIRBASE)\bin
LIBPDBNAME = $(DIROBJ)\$(TARGET).pdb
OUTPUT_DIRS = $(DIRBIN) $(DIRINC) $(DIRLIB) \ OUTPUT_DIRS = $(DIRBIN) $(DIRINC) $(DIRLIB) \
$(DIROBJ)\dec \ $(DIROBJ)\dec \
$(DIROBJ)\dsp \ $(DIROBJ)\dsp \
@ -107,6 +108,7 @@ DLLINC = webp_dll.h
CC = $(CC) /I$(DIROBJ) /FI$(DLLINC) $(RTLIB) /DWEBP_DLL CC = $(CC) /I$(DIROBJ) /FI$(DLLINC) $(RTLIB) /DWEBP_DLL
LNK = $(LNKDLL) /out:$(DIRBIN)\$(TARGETDLL) /implib:$(DIRLIB)\$(TARGET) LNK = $(LNKDLL) /out:$(DIRBIN)\$(TARGETDLL) /implib:$(DIRLIB)\$(TARGET)
X_OBJS = $(DIROBJ)\$(DLLC:.c=.obj) X_OBJS = $(DIROBJ)\$(DLLC:.c=.obj)
LIBPDBNAME = $(DIROBJ)\$(TARGETDLL).pdb
CFGSET = TRUE CFGSET = TRUE
!ENDIF !ENDIF
@ -218,7 +220,7 @@ $(X_OBJS): $(OUTPUT_DIRS)
$(X_OBJS): $(DIROBJ)\$(DLLINC) $(DIROBJ)\$(DLLC) $(X_OBJS): $(DIROBJ)\$(DLLINC) $(DIROBJ)\$(DLLC)
{$(DIROBJ)}.c{$(DIROBJ)}.obj: {$(DIROBJ)}.c{$(DIROBJ)}.obj:
$(CC) $(CFLAGS) /Fo"$@" $< $(CC) $(CFLAGS) /Fd$(LIBPDBNAME) /Fo"$@" $<
clean:: clean::
@-erase /s $(DIROBJ)\$(DLLC) $(DIROBJ)\$(DLLINC) 2> NUL @-erase /s $(DIROBJ)\$(DLLC) $(DIROBJ)\$(DLLINC) 2> NUL
!ENDIF !ENDIF
@ -247,17 +249,17 @@ $(DIROBJ)\$(DLLC): $(DIROBJ)\$(DLLINC)
.SUFFIXES: .c .obj .res .exe .SUFFIXES: .c .obj .res .exe
{examples}.c{$(DIROBJ)\examples}.obj: {examples}.c{$(DIROBJ)\examples}.obj:
$(CC) $(CFLAGS) /Fo"$@" $< $(CC) $(CFLAGS) /Fd$@.pdb /Fo"$@" $<
{src\dec}.c{$(DIROBJ)\dec}.obj: {src\dec}.c{$(DIROBJ)\dec}.obj:
$(CC) $(CFLAGS) /Fo"$@" $< $(CC) $(CFLAGS) /Fd$(LIBPDBNAME) /Fo"$@" $<
{src\dsp}.c{$(DIROBJ)\dsp}.obj: {src\dsp}.c{$(DIROBJ)\dsp}.obj:
$(CC) $(CFLAGS) /Fo"$@" $< $(CC) $(CFLAGS) /Fd$(LIBPDBNAME) /Fo"$@" $<
{src\enc}.c{$(DIROBJ)\enc}.obj: {src\enc}.c{$(DIROBJ)\enc}.obj:
$(CC) $(CFLAGS) /Fo"$@" $< $(CC) $(CFLAGS) /Fd$(LIBPDBNAME) /Fo"$@" $<
{src\mux}.c{$(DIROBJ)\mux}.obj: {src\mux}.c{$(DIROBJ)\mux}.obj:
$(CC) $(CFLAGS) /Fo"$@" $< $(CC) $(CFLAGS) /Fd$(LIBPDBNAME) /Fo"$@" $<
{src\utils}.c{$(DIROBJ)\utils}.obj: {src\utils}.c{$(DIROBJ)\utils}.obj:
$(CC) $(CFLAGS) /Fo"$@" $< $(CC) $(CFLAGS) /Fd$(LIBPDBNAME) /Fo"$@" $<
{$(DIROBJ)\examples}.obj{$(DIRBIN)}.exe: {$(DIROBJ)\examples}.obj{$(DIRBIN)}.exe:
$(LNKEXE) $(LDFLAGS) /OUT:"$@" $< \ $(LNKEXE) $(LDFLAGS) /OUT:"$@" $< \