move sqlite-version.h rules below rules.mk so 'make -C db/sqlite3/src' does the right thing. rs=sdwilsh

This commit is contained in:
Ted Mielczarek 2008-10-28 17:42:27 -04:00
parent d4208347b6
commit ad910f4456

View File

@ -51,20 +51,6 @@ FORCE_SHARED_LIB = 1
VISIBILITY_FLAGS =
LIB_IS_C_ONLY = 1
ifeq (,$(filter-out WINNT WINCE,$(OS_ARCH)))
ifndef GNU_CC
DEFFILE = $(win_srcdir)/sqlite.def
RCFILE = sqlite.rc
RESFILE = sqlite.res
GARBAGE += sqlite-version.h
sqlite-version.h: sqlite-version.py sqlite3.h
$(PYTHON) $^ > $@
export:: sqlite-version.h
endif
endif
# FIXME: bug 419893
NO_PROFILE_GUIDED_OPTIMIZE = 1
@ -111,6 +97,20 @@ endif
include $(topsrcdir)/config/rules.mk
ifeq (,$(filter-out WINNT WINCE,$(OS_ARCH)))
ifndef GNU_CC
DEFFILE = $(win_srcdir)/sqlite.def
RCFILE = sqlite.rc
RESFILE = sqlite.res
GARBAGE += sqlite-version.h
sqlite-version.h: sqlite-version.py sqlite3.h
$(PYTHON) $^ > $@
export:: sqlite-version.h
endif
endif
# next line allows use of MOZ_OBJDIR in .mozconfig with older gcc on BeOS, maybe others
LOCAL_INCLUDES += -I$(srcdir)