It's not going to work with libtool

This commit is contained in:
Yevgen Muntyan 2008-08-24 22:42:09 -05:00
parent da1d18b344
commit c6c136d0f0

View File

@ -6,11 +6,9 @@ EXTRA_DIST += $(PCH_HEADER)
ugly_base_compile_c = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
ugly_base_compile_cxx = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
ugly_base_compile_objc = $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS)
COMPILE = $(ugly_base_compile_c)
CXXCOMPILE = $(ugly_base_compile_cxx)
OBJCCOMPILE = $(ugly_base_compile_objc)
if MOO_ENABLE_PCH
@ -18,9 +16,13 @@ BUILT_SOURCES += $(ugly_pch_files)
CLEANFILES += $(ugly_pch_files)
ugly_pch_name = precompiled-header-name
ugly_pch_files = $(ugly_pch_name)-c.gch $(ugly_pch_name)-c++.gch
ugly_pch_files = $(ugly_pch_name)-c.gch
ugly_pch_mk = $(top_srcdir)/ugly/pch.mk
if MOO_USE_CPP
ugly_pch_files += $(ugly_pch_name)-c++.gch
endif
$(ugly_pch_name)-c.gch: $(PCH_HEADER) $(ugly_pch_mk)
$(ugly_base_compile_c) -x c-header -c $< -o $@
$(ugly_pch_name)-c++.gch: $(PCH_HEADER) $(ugly_pch_mk)