mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
- Fix compiling Explorer with precompiled headers.
svn path=/trunk/; revision=10393
This commit is contained in:
parent
c4811617d1
commit
0bde909135
2 changed files with 10 additions and 3 deletions
|
@ -49,6 +49,7 @@ TARGET_OBJECTS := \
|
||||||
utility/dragdropimpl.o \
|
utility/dragdropimpl.o \
|
||||||
utility/shellbrowserimpl.o \
|
utility/shellbrowserimpl.o \
|
||||||
utility/xmlstorage.o
|
utility/xmlstorage.o
|
||||||
|
TARGET_CPPAPP := yes
|
||||||
TARGET_PCH := precomp.h
|
TARGET_PCH := precomp.h
|
||||||
SUBDIRS := notifyhook
|
SUBDIRS := notifyhook
|
||||||
DEP_OBJECTS := $(TARGET_OBJECTS)
|
DEP_OBJECTS := $(TARGET_OBJECTS)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: helper.mk,v 1.74 2004/08/02 15:51:23 navaraf Exp $
|
# $Id: helper.mk,v 1.75 2004/08/04 18:22:41 navaraf Exp $
|
||||||
#
|
#
|
||||||
# Helper makefile for ReactOS modules
|
# Helper makefile for ReactOS modules
|
||||||
# Variables this makefile accepts:
|
# Variables this makefile accepts:
|
||||||
|
@ -888,6 +888,12 @@ ifeq ($(ROS_USE_PCH),yes)
|
||||||
ifneq ($(TARGET_PCH),)
|
ifneq ($(TARGET_PCH),)
|
||||||
MK_PCHNAME = $(TARGET_PCH).pch
|
MK_PCHNAME = $(TARGET_PCH).pch
|
||||||
|
|
||||||
|
ifeq ($(TARGET_CPPAPP),yes)
|
||||||
|
PCH_CC := $(CXX)
|
||||||
|
else
|
||||||
|
PCH_CC := $(CC)
|
||||||
|
endif
|
||||||
|
|
||||||
# GCC generates wrong dependencies for header files.
|
# GCC generates wrong dependencies for header files.
|
||||||
MK_PCHFAKE = $(TARGET_PCH:.h=.o)
|
MK_PCHFAKE = $(TARGET_PCH:.h=.o)
|
||||||
$(MK_PCHFAKE):
|
$(MK_PCHFAKE):
|
||||||
|
@ -895,11 +901,11 @@ $(MK_PCHFAKE):
|
||||||
|
|
||||||
$(MK_PCHNAME): depend.d
|
$(MK_PCHNAME): depend.d
|
||||||
- $(RTOUCH) $(MK_PCHNAME)
|
- $(RTOUCH) $(MK_PCHNAME)
|
||||||
- $(CC) $(TARGET_CFLAGS) $(TARGET_PCH)
|
- $(PCH_CC) $(TARGET_CFLAGS) $(TARGET_PCH)
|
||||||
|
|
||||||
depend.d: $(MK_PCHFAKE)
|
depend.d: $(MK_PCHFAKE)
|
||||||
- $(RTOUCH) depend.d
|
- $(RTOUCH) depend.d
|
||||||
- $(CC) $(TARGET_CFLAGS) $(TARGET_PCH) -M -MF depend.d
|
- $(PCH_CC) $(TARGET_CFLAGS) $(TARGET_PCH) -M -MF depend.d
|
||||||
|
|
||||||
include depend.d
|
include depend.d
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue