зеркало из https://github.com/mozilla/pjs.git
Split OS_CFLAGS into OS_CFLAGS, OS_INCLUDES and DEFINES.
Modified Makefile.ins to append not overwrite DEFINES. Added $(DEFINES) to the mkdepend command line so that some conditional dependencies are caught as well.
This commit is contained in:
Родитель
3178ed4b1e
Коммит
533abf7234
|
@ -22,7 +22,7 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DEFINES = -D_IMPL_NS_BASE
|
||||
DEFINES += -D_IMPL_NS_BASE
|
||||
|
||||
EXPORTS = \
|
||||
nsISizeOfHandler.h \
|
||||
|
|
|
@ -22,7 +22,7 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DEFINES =-D_IMPL_NS_BASE
|
||||
DEFINES +=-D_IMPL_NS_BASE
|
||||
|
||||
ifeq ($(OS_TARGET),Rhapsody)
|
||||
DIRS = rhapsody
|
||||
|
|
|
@ -29,7 +29,7 @@ MODULE=raptor
|
|||
|
||||
REQUIRES=xpcom raptor
|
||||
|
||||
DEFINES = -D_IMPL_NS_WIDGET
|
||||
DEFINES += -D_IMPL_NS_WIDGET
|
||||
|
||||
CPPSRCS= \
|
||||
nsTimer.cpp
|
||||
|
|
|
@ -29,7 +29,7 @@ MODULE=raptor
|
|||
|
||||
REQUIRES=xpcom raptor
|
||||
|
||||
DEFINES = -D_IMPL_NS_WIDGET
|
||||
DEFINES += -D_IMPL_NS_WIDGET
|
||||
|
||||
CPPSRCS= \
|
||||
nsTimer.cpp
|
||||
|
|
|
@ -50,8 +50,10 @@ MOZ_NATIVE_JPEG = @SYSTEM_JPEG@
|
|||
MOZ_NATIVE_PNG = @SYSTEM_PNG@
|
||||
|
||||
# Should the extra CFLAGS only be added in Makefile.ins that need them?
|
||||
OS_CFLAGS = @CFLAGS@ @DEFS@ $(NSPR_CFLAGS) $(JPEG_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS)
|
||||
OS_CFLAGS = @CFLAGS@
|
||||
OS_INCLUDES = $(NSPR_CFLAGS) $(JPEG_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS)
|
||||
OS_LIBS = @LDFLAGS@ @LIBS@
|
||||
DEFINES = @DEFS@
|
||||
|
||||
XCFLAGS = @XCFLAGS@
|
||||
XLDFLAGS = @XLDFLAGS@
|
||||
|
|
|
@ -225,7 +225,7 @@ endif
|
|||
|
||||
ifdef USE_AUTOCONF
|
||||
OPTIMIZER =
|
||||
DEFINES = -UDEBUG -DNDEBUG -DTRIMMED
|
||||
DEFINES += -UDEBUG -DNDEBUG -DTRIMMED
|
||||
XBCFLAGS =
|
||||
else
|
||||
|
||||
|
@ -285,7 +285,7 @@ else
|
|||
OPTIMIZER = -g
|
||||
endif
|
||||
JAVA_OPTIMIZER = -g
|
||||
DEFINES = -DDEBUG -UNDEBUG -DDEBUG_$(shell $(WHOAMI)) -DTRACING
|
||||
DEFINES += -DDEBUG -UNDEBUG -DDEBUG_$(shell $(WHOAMI)) -DTRACING
|
||||
XBCFLAGS = -FR$*
|
||||
endif
|
||||
|
||||
|
|
|
@ -779,10 +779,10 @@ $(MKDEPENDENCIES)::
|
|||
@$(MAKE_OBJDIR)
|
||||
touch $(MKDEPENDENCIES)
|
||||
ifdef USE_AUTOCONF
|
||||
$(MKDEPEND) -p$(OBJDIR_NAME)/ -o'.o' -f$(MKDEPENDENCIES) $(INCLUDES) $(addprefix $(srcdir)/,$(CSRCS) $(CPPSRCS))
|
||||
$(MKDEPEND) -p$(OBJDIR_NAME)/ -o'.o' -f$(MKDEPENDENCIES) $(DEFINES) $(INCLUDES) $(addprefix $(srcdir)/,$(CSRCS) $(CPPSRCS))
|
||||
@mv depend.mk depend.mk.old && cat depend.mk.old | sed "s|^$(OBJDIR_NAME)/$(srcdir)/|$(OBJDIR_NAME)/|g" > depend.mk && rm -f depend.mk.old
|
||||
else
|
||||
$(MKDEPEND) -p$(OBJDIR_NAME)/ -o'.o' -f$(MKDEPENDENCIES) $(INCLUDES) $(CSRCS) $(CPPSRCS)
|
||||
$(MKDEPEND) -p$(OBJDIR_NAME)/ -o'.o' -f$(MKDEPENDENCIES) $(DEFINES) $(INCLUDES) $(CSRCS) $(CPPSRCS)
|
||||
endif
|
||||
|
||||
$(MKDEPEND)::
|
||||
|
|
Загрузка…
Ссылка в новой задаче