Disable all built-in .SUFFIXES, and all built-in rules with a % target, for

performance


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@16158 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2003-03-10 12:54:42 +00:00
parent 0c420344f2
commit acda6cc303

View file

@ -269,10 +269,35 @@ endif
# General rules
VPATH = .
# Disable all built-in suffixes for performance.
.SUFFIXES:
# Then define our own.
.SUFFIXES: .m .c .psw .java .h .cpp .cxx .C .cc .cp
.PRECIOUS: %.c %.h $(GNUSTEP_OBJ_DIR)/%${OEXT}
# Disable all built-in rules with a vague % as target, for performance.
%: %.c
%: %.cpp
%: %.cc
%: %.C
(%): %
%:: %,v
%:: RCS/%,v
%:: RCS/%
%:: s.%
%:: SCCS/s.%
#
# In exceptional conditions, you might need to want to use different compiler
# flags for a file (for example, if a file doesn't compile with optimization