OSDN Git Service

[feature] Linux/UNIX環境でのビルドにプリコンパイルヘッダを導入
[hengbandforosx/hengbandosx.git] / src / Makefile.am
index 7228f3f..471b5ff 100644 (file)
@@ -526,6 +526,7 @@ hengband_SOURCES = \
        mspell/mspell-status.cpp mspell/mspell-status.h \
        mspell/mspell-particularity.cpp mspell/mspell-particularity.h \
        mspell/mspell-selector.cpp mspell/mspell-selector.h \
+       mspell/mspell.h \
        mspell/smart-mspell-util.cpp mspell/smart-mspell-util.h \
        mspell/specified-summon.cpp mspell/specified-summon.h \
        mspell/summon-checker.cpp mspell/summon-checker.h \
@@ -712,7 +713,6 @@ hengband_SOURCES = \
        room/rooms-trap.cpp room/rooms-trap.h \
        room/rooms-vault.cpp room/rooms-vault.h \
        room/space-finder.cpp room/space-finder.h \
-       room/pit-nest-kinds-table.cpp room/pit-nest-kinds-table.h \
        room/treasure-deployment.cpp room/treasure-deployment.h \
        room/vault-builder.cpp room/vault-builder.h \
        \
@@ -920,19 +920,34 @@ hengband_SOURCES = \
        world/world-turn-processor.cpp world/world-turn-processor.h
 
 EXTRA_hengband_SOURCES = \
-       angband.ico angband.rc ang_eng.rc maid-x11.cpp main-win.cpp \
-       makefile.bcc makefile.std term/readdib.cpp term/readdib.h wall.bmp
+       angband.ico angband.rc ang_eng.rc ang_jp.rc maid-x11.cpp main-win.cpp \
+       main-win/main-win-bg.cpp main-win/main-win-bg.h \
+       main-win/main-win-define.h \
+       main-win/main-win-file-utils.cpp main-win/main-win-file-utils.h \
+       main-win/main-win-mci.cpp main-win/main-win-mci.h \
+       main-win/main-win-mmsystem.h \
+       main-win/main-win-music.cpp main-win/main-win-music.h \
+       main-win/main-win-sound.cpp main-win/main-win-sound.h \
+       main-win/main-win-tokenizer.cpp main-win/main-win-tokenizer.h \
+       main-win/main-win-windows.h \
+       makefile.bcc makefile.std term/readdib.cpp term/readdib.h wall.bmp \
+       stdafx.cpp stdafx.h
 
 EXTRA_DIST = \
        gcc-wrap
 
 DEFAULT_INCLUDES = -I$(srcdir) -I$(top_builddir)/src
-CFLAGS += $(XFT_CFLAGS) $(libcurl_CFLAGS)
+CPPFLAGS += $(XFT_CFLAGS) $(libcurl_CFLAGS) -include stdafx.h
 LIBS += $(XFT_LIBS) $(libcurl_LIBS)
 COMPILE = $(srcdir)/gcc-wrap $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 CXXCOMPILE = $(srcdir)/gcc-wrap $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CXXFLAGS)
+
+stdafx.h.gch: stdafx.h stdafx.cpp Makefile
+       $(CXX) -x c++-header $(CXXFLAGS) stdafx.cpp -o $@
+
+$(hengband_SOURCES:.cpp=.$(OBJEXT)): stdafx.h.gch
 
 install-exec-hook:
 if SET_GID