]> err.no Git - sope/commitdiff
more work on PCH
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Fri, 26 Aug 2005 13:11:13 +0000 (13:11 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Fri, 26 Aug 2005 13:11:13 +0000 (13:11 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1078 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

gnustep-make/ChangeLog
gnustep-make/Instance/Shared/headers.make
gnustep-make/rules.make

index 6ff015419e52fad77fc750783f6ff44b1fd8415d..080662698c8c382e01179abb3ff4c4b25a368458 100644 (file)
@@ -14,7 +14,7 @@
          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>
 
index 2fa29f0e20246b7d8fd812839a66844b753e33ec..b0cf8c1603ceb0222f4fb2c6b6bfa85fc8146a7c 100644 (file)
@@ -91,6 +91,8 @@ $(GNUSTEP_INSTANCE)_GCH_FILE=$(patsubst %.h,%$(GCH_SUFFIX),$($(GNUSTEP_INSTANCE)
 
 $(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)
 
index eb699ad814122ca983623468327a467f93b240e1..6493106f2875df3ee36ecbfcc5ac01a1ee430834 100644 (file)
@@ -392,6 +392,7 @@ $(GNUSTEP_OBJ_DIR)/%${OEXT} : %.m
        $(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
@@ -430,7 +431,7 @@ $(GNUSTEP_OBJ_DIR)/%${OEXT} : %.cp
              $($<_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); \