0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-07 06:18:56 +01:00
construct/include/rb/Makefile.am
Jason Volk 4796bec441 Activate PCH for position independent code.
Cuts compilation time by 30%+
2016-07-25 00:54:38 -07:00

28 lines
522 B
Makefile

AUTOMAKE_OPTIONS = foreign
AM_CPPFLAGS = @BOOST_CPPFLAGS@
if GCC
AM_CXXFLAGS = -fpch-deps
endif
if BUILD_PCH
BUILT_SOURCES = rb.h.gch rb.pic.h.gch
endif
rb.h.gch:
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -o rb.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) rb.h
rb.pic.h.gch:
cp rb.h rb.pic.h
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -fPIC -o rb.pic.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) rb.pic.h
clean-local:
rm -f rb.h.gch
rm -f rb.pic.h
rm -f rb.pic.h.gch
mrproper-local:
rm -f config.h
rm -f config.h.in
rm -f stamp-h1