mirror of
https://github.com/ZDoom/zdbsp.git
synced 2024-11-28 06:32:08 +00:00
- 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:
parent
28e30fbb7b
commit
43abbcc965
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -13,13 +13,13 @@ CFLAGS += -O3 -fomit-frame-pointer -DNDEBUG
|
||||||
CFLAGS += -mtune=i686
|
CFLAGS += -mtune=i686
|
||||||
#CFLAGS += -march=k8
|
#CFLAGS += -march=k8
|
||||||
|
|
||||||
LDFLAGS = -static-libstdc++ -static-libgcc
|
LDFLAGS =
|
||||||
RM = rm -f FILE
|
RM = rm -f FILE
|
||||||
ZLIBDIR = zlib/
|
ZLIBDIR = zlib/
|
||||||
|
|
||||||
ifeq (Windows_NT,$(OS))
|
ifeq (Windows_NT,$(OS))
|
||||||
EXE = zdbsp.exe
|
EXE = zdbsp.exe
|
||||||
LDFLAGS += -luser32 -lgdi32
|
LDFLAGS += -luser32 -lgdi32 -static-libstdc++ -static-libgcc
|
||||||
ifneq (msys,$(OSTYPE))
|
ifneq (msys,$(OSTYPE))
|
||||||
RM = del /q /f FILE 2>nul
|
RM = del /q /f FILE 2>nul
|
||||||
ZLIBDIR = "zlib\"
|
ZLIBDIR = "zlib\"
|
||||||
|
@ -72,7 +72,7 @@ endif
|
||||||
all: $(EXE)
|
all: $(EXE)
|
||||||
|
|
||||||
profile:
|
profile:
|
||||||
$(MAKE) clean
|
$(MAKE) cleanall
|
||||||
$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LDFLAGS="$(LDFLAGS) -lgcov"
|
$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LDFLAGS="$(LDFLAGS) -lgcov"
|
||||||
@echo "Process a few maps, then rebuild with make profile-use"
|
@echo "Process a few maps, then rebuild with make profile-use"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue