directory (which contains the precompiled header if one was created)
* rules.make: added a rule to compile a precompiled header (.h header
- to .gch)
+ to .gch), added a flag to ObjC file compilation to include a PCH
2005-07-21 Adam Fedor <fedor@gnu.org>
$(DERIVED_SOURCES_DIR)/$($(GNUSTEP_INSTANCE)_GCH_FILE) :: $(HEADER_FILES)
+PCH_INCLUDE_FLAG=-include $(DERIVED_SOURCES_DIR)/$($(GNUSTEP_INSTANCE)_PCH_FILE)
+
shared-instance-headers-all: \
$(DERIVED_SOURCES_DIR)/$($(GNUSTEP_INSTANCE)_GCH_FILE)
$(ECHO_COMPILING)$(CC) $< -c \
$(filter-out $($<_FILE_FILTER_OUT_FLAGS),$(ALL_CPPFLAGS) \
$(ALL_OBJCFLAGS)) \
+ $(PCH_INCLUDE_FLAG) \
$($<_FILE_FLAGS) -o $@$(END_ECHO)
$(GNUSTEP_OBJ_DIR)/%${OEXT} : %.C
$($<_FILE_FLAGS) -o $@$(END_ECHO)
# precompiled header files (TODO: should go into GNUSTEP_OBJ_DIR?)
-GCH_SUFFIX=.gch
+GCH_SUFFIX=.h.gch
$(DERIVED_SOURCES_DIR)/%$(GCH_SUFFIX): %.h
if ! test -d $(DERIVED_SOURCES_DIR); then \
$(MKDIRS) $(DERIVED_SOURCES_DIR); \