Port of the PCE emulator suite to the 3DS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.inc.in 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. # Makefile.inc
  2. etcdir = @sysconfdir@/pce
  3. datarootdir = @datarootdir@
  4. datadir = @datadir@/pce
  5. CC = @CC@
  6. LD = @CC@
  7. NASM = @NASM@
  8. IHEX = @IHEX@
  9. LN_S = @LN_S@
  10. INSTALL = @INSTALL@
  11. CFLAGS = @CFLAGS@
  12. CFLAGS_DEFAULT = $(CFLAGS) -Isrc
  13. LDFLAGS = @LDFLAGS@
  14. LDFLAGS_DEFAULT = $(LDFLAGS)
  15. EXEEXT := @EXEEXT@
  16. LIBS := @LIBS@
  17. ifneq "$(srcdir)" "."
  18. CFLAGS_DEFAULT += -I$(srcdir)/src
  19. endif
  20. PCE_VERSION_MAJ := @PCE_VERSION_MAJ@
  21. PCE_VERSION_MIN := @PCE_VERSION_MIN@
  22. PCE_VERSION_MIC := @PCE_VERSION_MIC@
  23. PCE_VERSION_STR := @PCE_VERSION_STR@
  24. PCE_HAVE_NASM := @PCE_HAVE_NASM@
  25. PCE_HAVE_IHEX := @PCE_HAVE_IHEX@
  26. PCE_ENABLE_X11 := @PCE_ENABLE_X11@
  27. PCE_X11_CFLAGS := @PCE_X11_CFLAGS@
  28. PCE_X11_LIBS := @PCE_X11_LIBS@
  29. PCE_ENABLE_SDL := @PCE_ENABLE_SDL@
  30. PCE_SDL_CFLAGS := @PCE_SDL_CFLAGS@
  31. PCE_SDL_LIBS := @PCE_SDL_LIBS@
  32. PCE_HAVE_STDINT_H := @PCE_HAVE_STDINT_H@
  33. PCE_HAVE_INTTYPES_H := @PCE_HAVE_INTTYPES_H@
  34. PCE_LARGE_FILE := @PCE_LARGE_FILE@
  35. PCE_HOST_LINUX := @PCE_HOST_LINUX@
  36. PCE_HOST_WINDOWS := @PCE_HOST_WINDOWS@
  37. PCE_HOST_SUNOS := @PCE_HOST_SUNOS@
  38. PCE_HOST_NETBSD := @PCE_HOST_NETBSD@
  39. PCE_HOST_IA32 := @PCE_HOST_IA32@
  40. PCE_HOST_PPC := @PCE_HOST_PPC@
  41. PCE_HOST_SPARC := @PCE_HOST_SPARC@
  42. ifneq "$(PCE_HAVE_STDINT_H)" "1"
  43. CFLAGS_DEFAULT += -Isrc/lib/stdint
  44. ifneq "$(srcdir)" "."
  45. CFLAGS_DEFAULT += -I$(srcdir)/src/lib/stdint
  46. endif
  47. endif
  48. ifeq "$(PCE_HOST_IA32)" "1"
  49. CFLAGS_DEFAULT += -DPCE_HOST_IA32
  50. endif
  51. ifeq "$(PCE_HOST_PPC)" "1"
  52. CFLAGS_DEFAULT += -DPCE_HOST_PPC
  53. endif
  54. ifeq "$(PCE_HOST_SPARC)" "1"
  55. CFLAGS_DEFAULT += -DPCE_HOST_SPARC
  56. endif
  57. PCE_BUILD_ATARIST := @PCE_BUILD_ATARIST@
  58. PCE_BUILD_CPM80 := @PCE_BUILD_CPM80@
  59. PCE_BUILD_IBMPC := @PCE_BUILD_IBMPC@
  60. PCE_BUILD_MACPLUS := @PCE_BUILD_MACPLUS@
  61. PCE_BUILD_RC759 := @PCE_BUILD_RC759@
  62. PCE_BUILD_SIM405 := @PCE_BUILD_SIM405@
  63. PCE_BUILD_SIM6502 := @PCE_BUILD_SIM6502@
  64. PCE_BUILD_SIMARM := @PCE_BUILD_SIMARM@
  65. PCE_BUILD_SIMS32 := @PCE_BUILD_SIMS32@
  66. PCE_BUILD_IBMPC_ROM := @PCE_BUILD_IBMPC_ROM@
  67. PCE_BUILD_MACPLUS_ROM := @PCE_BUILD_MACPLUS_ROM@
  68. PCE_ENABLE_READLINE := @PCE_ENABLE_READLINE@
  69. PCE_READLINE_LIBS := @PCE_READLINE_LIBS@
  70. PCE_ENABLE_TUN := @PCE_ENABLE_TUN@
  71. PCE_ENABLE_CHAR_POSIX := @PCE_ENABLE_CHAR_POSIX@
  72. PCE_ENABLE_CHAR_PPP := @PCE_ENABLE_CHAR_PPP@
  73. PCE_ENABLE_CHAR_PTY := @PCE_ENABLE_CHAR_PTY@
  74. PCE_ENABLE_CHAR_SLIP := @PCE_ENABLE_CHAR_SLIP@
  75. PCE_ENABLE_CHAR_TCP := @PCE_ENABLE_CHAR_TCP@
  76. PCE_ENABLE_CHAR_TIOS := @PCE_ENABLE_CHAR_TIOS@
  77. PCE_ENABLE_CHAR_WINCOM := @PCE_ENABLE_CHAR_WINCOM@
  78. PCE_ENABLE_SOUND_OSS := @PCE_ENABLE_SOUND_OSS@
  79. distdir := pce-$(PCE_VERSION_STR)
  80. # ----------------------------------------------------------------------
  81. DCL += Makefile Makefile.inc configure config.log config.status
  82. DIST += AUTHORS COPYING ChangeLog INSTALL \
  83. Makefile.dep Makefile.in Makefile.inc.in \
  84. NEWS README TODO autogen.sh config.guess config.sub \
  85. configure configure.in gendep install-sh
  86. DIST += doc/char-drivers.txt doc/keys.txt doc/messages.txt \
  87. doc/monitor.txt doc/pce-ibmpc.txt doc/pce-macplus.txt \
  88. doc/pri-format.txt doc/psi-format.txt \
  89. doc/rc759-keymap.txt doc/sound-drivers.txt
  90. # ----------------------------------------------------------------------
  91. include $(srcdir)/Makefile.dep
  92. include $(srcdir)/src/Makefile.inc
  93. include $(srcdir)/src/cpu/Makefile.inc
  94. include $(srcdir)/src/cpu/arm/Makefile.inc
  95. include $(srcdir)/src/cpu/e6502/Makefile.inc
  96. include $(srcdir)/src/cpu/e68000/Makefile.inc
  97. include $(srcdir)/src/cpu/e8080/Makefile.inc
  98. include $(srcdir)/src/cpu/e8086/Makefile.inc
  99. include $(srcdir)/src/cpu/ppc405/Makefile.inc
  100. include $(srcdir)/src/cpu/sparc32/Makefile.inc
  101. include $(srcdir)/src/chipset/80186/Makefile.inc
  102. include $(srcdir)/src/chipset/82xx/Makefile.inc
  103. include $(srcdir)/src/chipset/clock/Makefile.inc
  104. include $(srcdir)/src/chipset/ppc405/Makefile.inc
  105. include $(srcdir)/src/chipset/Makefile.inc
  106. include $(srcdir)/src/devices/clock/Makefile.inc
  107. include $(srcdir)/src/devices/video/Makefile.inc
  108. include $(srcdir)/src/devices/Makefile.inc
  109. include $(srcdir)/src/libini/Makefile.inc
  110. include $(srcdir)/src/lib/Makefile.inc
  111. include $(srcdir)/src/drivers/Makefile.inc
  112. include $(srcdir)/src/drivers/block/Makefile.inc
  113. include $(srcdir)/src/drivers/char/Makefile.inc
  114. include $(srcdir)/src/drivers/pri/Makefile.inc
  115. include $(srcdir)/src/drivers/psi/Makefile.inc
  116. include $(srcdir)/src/drivers/sound/Makefile.inc
  117. include $(srcdir)/src/drivers/video/Makefile.inc
  118. include $(srcdir)/src/arch/Makefile.inc
  119. include $(srcdir)/src/arch/atarist/Makefile.inc
  120. include $(srcdir)/src/arch/cpm80/Makefile.inc
  121. include $(srcdir)/src/arch/dos/Makefile.inc
  122. include $(srcdir)/src/arch/ibmpc/Makefile.inc
  123. include $(srcdir)/src/arch/ibmpc/bios/Makefile.inc
  124. include $(srcdir)/src/arch/ibmpc/pceutils/Makefile.inc
  125. include $(srcdir)/src/arch/macplus/Makefile.inc
  126. include $(srcdir)/src/arch/macplus/pcex/Makefile.inc
  127. include $(srcdir)/src/arch/rc759/Makefile.inc
  128. include $(srcdir)/src/arch/sim405/Makefile.inc
  129. include $(srcdir)/src/arch/sim6502/Makefile.inc
  130. include $(srcdir)/src/arch/simarm/Makefile.inc
  131. include $(srcdir)/src/arch/sims32/Makefile.inc
  132. include $(srcdir)/src/utils/Makefile.inc
  133. include $(srcdir)/src/utils/aym/Makefile.inc
  134. include $(srcdir)/src/utils/pce-img/Makefile.inc
  135. include $(srcdir)/src/utils/pri/Makefile.inc
  136. include $(srcdir)/src/utils/psi/Makefile.inc
  137. TARGETS += $(BIN) $(ETC) $(SHARE)
  138. # ----------------------------------------------------------------------
  139. %: %.sh
  140. $(QP)echo " SED $@"
  141. $(QR)rm -f $@
  142. $(QR)sed -e "s/%PCE_VERSION_STR/$(PCE_VERSION_STR)/g" < $< > $@
  143. $(QR)chmod a+x $@
  144. install-extra:
  145. ifneq "$(SHARE_IBMPC)" ""
  146. $(QP)echo " MKDIR $(DESTDIR)$(datadir)/ibmpc"
  147. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(datadir)/ibmpc
  148. $(QR)for f in $(SHARE_IBMPC) ; do \
  149. dst=$(DESTDIR)$(datadir)/ibmpc/`basename "$$f"` ; \
  150. if test x$(V) != x1 ; then echo " CP $$dst" ; fi ; \
  151. $(INSTALL) -m 644 "$$f" "$$dst" ; \
  152. done
  153. endif
  154. ifneq "$(SHARE_MACPLUS)" ""
  155. $(QP)echo " MKDIR $(DESTDIR)$(datadir)/macplus"
  156. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(datadir)/macplus
  157. $(QR)for f in $(SHARE_MACPLUS) ; do \
  158. dst=$(DESTDIR)$(datadir)/macplus/`basename "$$f"` ; \
  159. if test x$(V) != x1 ; then echo " CP $$dst" ; fi ; \
  160. $(INSTALL) -m 644 "$$f" "$$dst" ; \
  161. done
  162. endif
  163. ifneq "$(SHARE_PCEUTILS)" ""
  164. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(datadir)/ibmpc/pceutils
  165. $(QR)for f in $(SHARE_PCEUTILS) ; do \
  166. dst=$(DESTDIR)$(datadir)/ibmpc/pceutils/`basename "$$f"` ; \
  167. test x$(V) != x1 && echo " CP $$dst" ; \
  168. $(INSTALL) -m 644 "$$f" "$$dst" ; \
  169. done
  170. endif
  171. dist-extra:
  172. ifneq "$(SHARE_PCEUTILS)" ""
  173. $(QR)for f in $(PCEUTILS_BIN) ; do \
  174. test -f "$$f" || continue ; \
  175. dst=contrib/pceutils/`basename "$$f"` ; \
  176. test x$(V) != x1 && echo " CP $$dst" ; \
  177. mkdir -p "$(distdir)/contrib/pceutils" ; \
  178. cp -p "$$f" "$(distdir)/$$dst" ; \
  179. done
  180. endif
  181. dist-version:
  182. $(QP)echo " GEN version"
  183. $(QR)echo "pce $(PCE_VERSION_MAJ) $(PCE_VERSION_MIN) $(PCE_VERSION_MIC) $(PCE_VERSION_STR)" \
  184. > "$(distdir)/version"
  185. release:
  186. $(MAKE) PCE_VERSION_STR=$(PCE_VERSION_MAJ).$(PCE_VERSION_MIN).$(PCE_VERSION_MIC) dist