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.in 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. # Makefile
  2. prefix = @prefix@
  3. exec_prefix = @exec_prefix@
  4. bindir = @bindir@
  5. etcdir = @sysconfdir@
  6. incdir = @includedir@
  7. libdir = @libdir@
  8. mandir = @mandir@
  9. datarootdir = @datarootdir@
  10. datadir = @datadir@
  11. srcdir := @srcdir@
  12. VPATH = $(srcdir)
  13. ifeq "$(V)" "1"
  14. QP = @\#
  15. QR =
  16. else
  17. QP = @
  18. QR = @
  19. endif
  20. all: all2
  21. AR := @AR@
  22. RANLIB := @RANLIB@
  23. BIN :=
  24. BINS :=
  25. ETC :=
  26. MAN1 :=
  27. MAN2 :=
  28. MAN3 :=
  29. SHARE :=
  30. CLN :=
  31. DCL :=
  32. DIRS :=
  33. TARGETS :=
  34. DIST :=
  35. include Makefile.inc
  36. MANA := $(MAN1) $(MAN2) $(MAN3)
  37. MANT := $(foreach f,$(MANA),$(f).txt $(f).ps)
  38. CLN += $(MANT)
  39. all2: subdirs $(TARGETS)
  40. subdirs:
  41. ifneq "$(DIRS)" ""
  42. $(QR)for f in $(DIRS) ; do \
  43. if test -d "$$f" ; then continue ; fi ; \
  44. if test x$(V) != x1 ; then echo " MKDIR $$f" ; fi ; \
  45. mkdir -p "$$f" ; \
  46. done
  47. endif
  48. clean:
  49. ifneq "$(CLN)" ""
  50. $(QR)for f in $(CLN) ; do \
  51. if test x$(V) != x1 ; then echo " RM $$f" ; fi ; \
  52. rm -f "$$f" ; \
  53. done
  54. endif
  55. distclean: clean
  56. ifneq "$(DCL)" ""
  57. $(QR)for f in $(DCL) ; do \
  58. if test x$(V) != x1 ; then echo " RM $$f" ; fi ; \
  59. rm -f "$$f" ; \
  60. done
  61. endif
  62. man: $(MANT)
  63. install: install-bin install-bins install-etc install-man install-share install-extra
  64. install-bin:
  65. ifneq "$(BIN)" ""
  66. $(QP)echo " MKDIR $(bindir)"
  67. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
  68. $(QR)for f in $(BIN) ; do \
  69. dst=$(DESTDIR)$(bindir)/`basename "$$f"` ; \
  70. if test x$(V) != x1 ; then echo " CP $$dst" ; fi ; \
  71. $(INSTALL) -m 755 "$$f" "$$dst" ; \
  72. done
  73. endif
  74. install-bins:
  75. ifneq "$(BINS)" ""
  76. $(QP)echo " MKDIR $(bindir)"
  77. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
  78. $(QR)for f in $(BINS) ; do \
  79. dst=$(DESTDIR)$(bindir)/`basename "$$f"` ; \
  80. if test x$(V) != x1 ; then echo " CP $$dst" ; fi ; \
  81. $(INSTALL) -m 755 "$$f" "$$dst" ; \
  82. done
  83. endif
  84. install-etc:
  85. ifneq "$(ETC)" ""
  86. $(QP)echo " MKDIR $(DESTDIR)$(etcdir)"
  87. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(etcdir)
  88. $(QR)for f in $(ETC) ; do \
  89. dst=$(DESTDIR)$(etcdir)/`basename "$$f"` ; \
  90. if test x$(V) != x1 ; then echo " CP $$dst" ; fi ; \
  91. $(INSTALL) -m 644 "$$f" "$$dst" ; \
  92. done
  93. endif
  94. install-man:
  95. ifneq "$(MAN1)" ""
  96. $(QP)echo " MKDIR $(mandir)/man1"
  97. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
  98. $(QR)for f in $(MAN1) ; do \
  99. dst=$(DESTDIR)$(mandir)/man1/`basename "$$f"` ; \
  100. if test x$(V) != x1 ; then echo " CP $$dst" ; fi ; \
  101. $(INSTALL) -m 644 "$(srcdir)/$$f" "$$dst" ; \
  102. done
  103. endif
  104. install-share:
  105. ifneq "$(SHARE)" ""
  106. $(QP)echo " MKDIR $(DESTDIR)$(datadir)"
  107. $(QR)$(INSTALL) -d -m 755 $(DESTDIR)$(datadir)
  108. $(QR)for f in $(SHARE) ; do \
  109. dst=$(DESTDIR)$(datadir)/`basename "$$f"` ; \
  110. if test x$(V) != x1 ; then echo " CP $$dst" ; fi ; \
  111. $(INSTALL) -m 644 "$$f" "$$dst" ; \
  112. done
  113. endif
  114. install-extra:
  115. dist: dist-dist dist-contrib dist-extra dist-version
  116. $(QP)echo " TAR $(distdir).tar"
  117. $(QR)( cd "$(distdir)"/.. && \
  118. tar -cvf "$(distdir).tar" `basename "$(distdir)"` > /dev/null )
  119. $(QP)echo " GZIP $(distdir).tar.gz"
  120. $(QR)rm -f "$(distdir).tar.gz"
  121. $(QR)gzip -9 "$(distdir).tar"
  122. dist-dist:
  123. ifneq "$(DIST)" ""
  124. $(QP)echo " MKDIR $(distdir)"
  125. $(QR)mkdir -p "$(distdir)"
  126. $(QR)for f in $(DIST) ; do \
  127. if test -f "$$f" ; then \
  128. src=$$f ; \
  129. elif test -f "$(srcdir)/$$f" ; then \
  130. src=$(srcdir)/$$f ; \
  131. else \
  132. if test x$(V) != x1 ; then echo " SKIP $$f" ; fi ; \
  133. continue ; \
  134. fi ; \
  135. if test x$(V) != x1 ; then echo " CP $$f" ; fi ; \
  136. dir=$(distdir)/`dirname "$$f"` ; \
  137. mkdir -p "$$dir" ; \
  138. cp -p "$$src" "$$dir" ; \
  139. done
  140. endif
  141. dist-contrib:
  142. $(QR)if test -d "$(srcdir)/contrib" ; then \
  143. ( cd "$(srcdir)" && find contrib/ -type f -print ) |\
  144. while read src ; do \
  145. test -f "$(distdir)/$$src" && continue ; \
  146. test x$(V) != x1 && echo " CP $$src" ; \
  147. dir=`dirname "$(distdir)/$$src"` ; \
  148. test -d "$$dir" || mkdir -p "$$dir" ; \
  149. cp -p "$(srcdir)/$$src" "$$dir" ; \
  150. done ; \
  151. fi
  152. dist-extra:
  153. # ----------------------------------------------------------------------
  154. %.o: %.c
  155. $(QP)echo " CC $@"
  156. $(QR)$(CC) -c $(CFLAGS_DEFAULT) -o $@ $<
  157. %.o: %.cxx
  158. $(QP)echo " CXX $@"
  159. $(QR)$(CXX) -c $(CXXFLAGS_DEFAULT) -o $@ $<
  160. %.o: %.cpp
  161. $(QP)echo " CXX $@"
  162. $(QR)$(CXX) -c $(CXXFLAGS_DEFAULT) -o $@ $<
  163. %.a:
  164. $(QP)echo " AR $@"
  165. $(QR)rm -f $@
  166. $(QR)$(AR) -rc $@ $^
  167. $(QP)echo " RANLIB $@"
  168. $(QR)$(RANLIB) $@
  169. %.1.ps: %.1
  170. $(QP)echo " MAN $@"
  171. $(QR)groff -Tps -mandoc < $< > $@
  172. %.1.man: %.1
  173. $(QP)echo " MAN $@"
  174. $(QR)troff -Tlatin1 -mandoc < $< | grotty -c > $@
  175. %.1.txt: %.1
  176. $(QP)echo " MAN $@"
  177. $(QR)troff -Tlatin1 -mandoc < $< | grotty -c -b -o -u > $@