- Don't force static linking for non-Windows hosts.

- Making profile collection builds should delete leftover gcda files by doing a cleanall,
  not just a clean.

SVN r2363 (trunk)
This commit is contained in:
Randy Heit 2010-06-12 03:43:56 +00:00
parent 28e30fbb7b
commit 43abbcc965

View file

@ -13,13 +13,13 @@ CFLAGS += -O3 -fomit-frame-pointer -DNDEBUG
CFLAGS += -mtune=i686
#CFLAGS += -march=k8
LDFLAGS = -static-libstdc++ -static-libgcc
LDFLAGS =
RM = rm -f FILE
ZLIBDIR = zlib/
ifeq (Windows_NT,$(OS))
EXE = zdbsp.exe
LDFLAGS += -luser32 -lgdi32
LDFLAGS += -luser32 -lgdi32 -static-libstdc++ -static-libgcc
ifneq (msys,$(OSTYPE))
RM = del /q /f FILE 2>nul
ZLIBDIR = "zlib\"
@ -72,7 +72,7 @@ endif
all: $(EXE)
profile:
$(MAKE) clean
$(MAKE) cleanall
$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LDFLAGS="$(LDFLAGS) -lgcov"
@echo "Process a few maps, then rebuild with make profile-use"