forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new target 'make distclean' to clean PCH files
PCH files are now rebuilt only when needed
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ifeq ($(type),release) | ||
WX_COMMAND=`wx-config --cflags --debug=no` | ||
FLAGS=-O2 -DNDEBUG -fPIC | ||
TARGET=precompiled_header_release.h.gch | ||
else | ||
WX_COMMAND=`wx-config --cflags --debug=no` | ||
FLAGS=-g -O0 -fPIC | ||
TARGET=precompiled_header_dbg.h.gch | ||
endif | ||
|
||
all: $(TARGET) | ||
|
||
precompiled_header_dbg.h.gch: precompiled_header_dbg.h | ||
@echo -- Building PCH file precompiled_header_dbg.h.gch | ||
$(CXX) $(FLAGS) $(CFLAGS) $(WX_COMMAND) -c precompiled_header_dbg.h -o precompiled_header_dbg.h.gch | ||
|
||
precompiled_header_release.h.gch: precompiled_header_release.h | ||
@echo -- Building PCH file precompiled_header_release.h.gch | ||
$(CXX) $(FLAGS) $(CFLAGS) $(WX_COMMAND) -c precompiled_header_release.h -o precompiled_header_release.h.gch | ||
|
||
clean: | ||
$(RM) -f $(TARGET) |