OSDN Git Service

patch for building with MinGW
authorSHIRAKATA Kentaro <argrath@ub32.org>
Fri, 20 Jan 2017 18:24:25 +0000 (18:24 +0000)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Fri, 20 Jan 2017 18:24:25 +0000 (18:24 +0000)
patch/Makefile.gcc.patch [new file with mode: 0755]
patch/index.html

diff --git a/patch/Makefile.gcc.patch b/patch/Makefile.gcc.patch
new file mode 100755 (executable)
index 0000000..a60f2c1
--- /dev/null
@@ -0,0 +1,113 @@
+diff -urN jnethack-3.6.0-0.6_souecepart/sys/winnt/Makefile.gcc jnethack-3.6.0-0.6_souecepart+/sys/winnt/Makefile.gcc\r
+--- jnethack-3.6.0-0.6_souecepart/sys/winnt/Makefile.gcc       Mon Jun 22 13:58:42 2015\r
++++ jnethack-3.6.0-0.6_souecepart+/sys/winnt/Makefile.gcc      Tue Jul 26 21:50:40 2016\r
+@@ -41,10 +41,10 @@\r
+ #\r
\r
+ # 64 bit\r
+-#TARGET_CPU=x64\r
++TARGET_CPU=x64\r
+ #\r
+ # 32 bit\r
+-TARGET_CPU=x86\r
++#TARGET_CPU=x86\r
+ #\r
+ #---------------------------------------------------------------\r
+ # 2. Where do you want the game to be built (which folder)?\r
+@@ -97,6 +97,8 @@\r
+ MSWIN = ../win/win32\r
+ # Tile support files\r
+ WSHR  = ../win/share\r
++# JP\r
++JP    = ../japanese\r
\r
+ #\r
+ #  Object directory.\r
+@@ -173,7 +175,7 @@\r
+ # Setting up the compiler and linker\r
+ # macros. All builds include the base ones.\r
+ #==========================================\r
+-cflags = -mms-bitfields\r
++cflags = -mms-bitfields -finput-charset=CP932 -fexec-charset=CP932\r
+ lflags  =\r
+ ifeq  "$(DEBUGINFO)" "Y"\r
+ cdebug = -g\r
+@@ -282,9 +284,9 @@\r
+ VOBJ10 = $(O)mail.o     $(O)makemon.o  $(O)mapglyph.o $(O)mcastu.o\r
+ VOBJ11 = $(O)mhitm.o    $(O)mhitu.o    $(O)minion.o   $(O)mklev.o\r
+ VOBJ12 = $(O)mkmap.o    $(O)mkmaze.o   $(O)mkobj.o    $(O)mkroom.o\r
+-VOBJ13 = $(O)mon.o      $(O)mondata.o  $(O)monmove.o  $(O)monst.o\r
++VOBJ13 = $(O)mon.o      $(O)mondata.o  $(O)monmove.o  $(O)monstj.o\r
+ VOBJ14 = $(O)monstr.o   $(O)mplayer.o  $(O)mthrowu.o  $(O)muse.o\r
+-VOBJ15 = $(O)music.o    $(O)o_init.o   $(O)objects.o  $(O)objnam.o\r
++VOBJ15 = $(O)music.o    $(O)o_init.o   $(O)objectsj.o  $(O)objnam.o\r
+ VOBJ16 = $(O)options.o  $(O)pager.o    $(O)pickup.o   $(O)pline.o\r
+ VOBJ17 = $(O)polyself.o $(O)potion.o   $(O)pray.o     $(O)priest.o\r
+ VOBJ18 = $(O)quest.o    $(O)questpgr.o $(RANDOM)      $(O)read.o\r
+@@ -300,6 +302,8 @@\r
\r
+ DLBOBJ = $(O)dlb.o\r
\r
++JOBJ = $(O)jconj.o $(O)jlib.o\r
++\r
+ REGEX  = $(O)cppregex.o\r
\r
+ TTYOBJ = $(O)topl.o     $(O)getline.o  $(O)wintty.o\r
+@@ -312,7 +316,7 @@\r
+       $(VOBJ11) $(VOBJ12) $(VOBJ13) $(VOBJ14) $(VOBJ15) \\r
+       $(VOBJ16) $(VOBJ17) $(VOBJ18) $(VOBJ19) $(VOBJ20) \\r
+       $(VOBJ21) $(VOBJ22) $(VOBJ23) $(VOBJ24) $(VOBJ25) \\r
+-      $(VOBJ26) $(VOBJ27) $(REGEX)\r
++      $(VOBJ26) $(VOBJ27) $(JOBJ) $(REGEX)\r
\r
+ GUIOBJ  = $(O)mhaskyn.o $(O)mhdlg.o \\r
+       $(O)mhfont.o $(O)mhinput.o $(O)mhmain.o $(O)mhmap.o \\r
+@@ -443,6 +447,13 @@\r
+       $(cc) $(CFLAGS)  -o$@  $<\r
\r
+ #==========================================\r
++# Rules for files in japanese\r
++#==========================================\r
++\r
++$(OBJ)/%.o : $(JP)/%.c\r
++      $(cc) $(CFLAGS)  -o$@  $<\r
++\r
++#==========================================\r
+ # Rules for files in win/win32\r
+ #==========================================\r
\r
+@@ -1086,7 +1097,6 @@\r
+ $(O)ntsound.o: $(HACK_H) $(MSWSYS)/ntsound.c\r
+       $(cc) $(CFLAGS)  -o$@ $(MSWSYS)/ntsound.c\r
\r
+-\r
+ #if you aren't linking in the full gui then\r
+ #include the following stub for proper linkage.\r
\r
+@@ -1109,6 +1119,17 @@\r
+       $(cc) $(CFLAGS) -o$@ $(U)panic.c\r
\r
+ #\r
++# Japanese translation\r
++#\r
++\r
++$(O)jconj.o: ../japanese/jconj.c  $(HACK_H)\r
++      $(cc) $(CFLAGS) -o$@ ../japanese/jconj.c\r
++$(O)jlib.o: ../japanese/jlib.c $(HACK_H)\r
++      $(cc) $(CFLAGS) -o$@ ../japanese/jlib.c\r
++#$(O)jtrns.o: ../japanese/jtrns.c $(HACK_H) ../include/jdata.h\r
++#     $(cc) $(CFLAGS) -o$@ ../japanese/jtrns.c\r
++\r
++#\r
+ # The rest are stolen from sys/unix/Makefile.src,\r
+ # with the following changes:\r
+ #   * ../include changed to $(INCL)\r
+@@ -1304,6 +1325,8 @@\r
+ $(O)o_init.o: o_init.c $(HACK_H) $(INCL)/lev.h\r
+ $(O)objects.o: objects.c $(CONFIG_H) $(INCL)/obj.h $(INCL)/objclass.h \\r
+               $(INCL)/prop.h $(INCL)/skills.h $(INCL)/color.h\r
++$(O)objectsj.o: objectsj.c $(CONFIG_H) $(INCL)/obj.h $(INCL)/objclass.h \\r
++              $(INCL)/prop.h $(INCL)/skills.h $(INCL)/color.h\r
+ $(O)objnam.o: objnam.c $(HACK_H)\r
+ $(O)options.o: options.c $(CONFIG_H) $(INCL)/objclass.h $(INCL)/flag.h \\r
+               $(HACK_H) $(INCL)/tcap.h\r
index 39fb43e..43e4782 100755 (executable)
@@ -23,6 +23,7 @@
 <li><a href="centerpopups.patch">X11¤Ç¥À¥¤¥¢¥í¥°¤ò¥¦¥£¥ó¥É¥¦Ãæ¿´¤Ëɽ¼¨¤¹¤ë¥Ñ¥Ã¥Á</a>
 <li><a href="report.patch">¥¹¥³¥¢Á÷¿®µ¡Ç½¤òÄɲ乤ë¥Ñ¥Ã¥Á</a>
 <li><a href="mt.patch">Íð¿ôȯÀ¸´ï¤ËMersenne Twister¤ò»ÈÍѤ¹¤ë¥Ñ¥Ã¥Á(3.4.3-0.4ÍÑ)</a>
+<li><a href="Makefile.gcc.patch">MinGW¤Ç¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤¿¤á¤Î¥Ñ¥Ã¥Á(3.6.0-0.6ÍÑ)</a>
 </ul>
 <hr>
 Powered by <a href="http://sourceforge.jp"><img src="http://sourceforge.jp/sflogo.php?group_id=95" width="96" height="31" border="0" alt="SourceForge.jp"></a>