home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / gnusmalltalk / ymakefile < prev    next >
Makefile  |  1992-08-31  |  4KB  |  227 lines

  1. ;#include "mstconfig.h"
  2. ;#include "mstpaths.h"
  3.  
  4.  
  5. ;#ifndef DEFAULT_LIBRARIES
  6. #define DEFAULT_LIBRARIES -lm
  7. ;#endif
  8.  
  9. #ifndef EXTRA_CC_FLAGS
  10. #define EXTRA_CC_FLAGS
  11. #endif
  12.  
  13.  
  14. #ifndef OTHER_FILES
  15. #define OTHER_FILES
  16. #endif
  17.  
  18.  
  19. #ifndef OBJECTS_SYSTEM
  20. #define OBJECTS_SYSTEM
  21. #endif
  22.  
  23. #ifndef OBJECTS_MACHINE
  24. #define OBJECTS_MACHINE
  25. #endif
  26.  
  27.  
  28. #define HAVE_ALLOCA
  29.  
  30. MAINTAINER = 'sbb@Eng.sun.com'
  31.  
  32. CFLAGS_NORMAL   = -g $(EXTRA_CC_FLAGS)
  33. CFLAGS_PROFILE  = -g -pg -DUSE_MONCONTROL $(EXTRA_CC_FLAGS)
  34. CFLAGS_OPTIMIZE = -O2 -DOPTIMIZE $(EXTRA_CC_FLAGS)
  35.  
  36. ;#undef PROFILE
  37. ;#undef NORMAL
  38. ;#define OPTIMIZE
  39. ;
  40. ;#ifdef PROFILE
  41. ;CFLAGS = $(CFLAGS_PROFILE) $(EXTRA_PACKAGES)
  42. ;#else
  43. ;#ifdef OPTIMIZE
  44. ;CFLAGS = $(CFLAGS_OPTIMIZE) $(EXTRA_PACKAGES)
  45. ;#else
  46. ;CFLAGS = $(CFLAGS_NORMAL) $(EXTRA_PACKAGES)
  47. ;#endif
  48. ;#endif
  49. CFLAGS = 
  50.  
  51. OBJS =  mstmain.o   mstlib.o    mst.tab.o   mstlex.o    mststr.o \
  52.     mstid.o     msttree.o   mstbyte.o   mstinterp.o mstcomp.o \
  53.     mstsym.o    mstdict.o   mstoop.o    mstsave.o   mstcint.o \
  54.     mstsysdep.o mstcallin.o $(USER_OBJS) $(ALLOCA)
  55.  
  56. SRCS =  mstmain.c   mstlib.c    mst.tab.c   mstlex.c    mststr.c \
  57.     mstid.c        msttree.c   mstbyte.c   mstinterp.c mstcomp.c \
  58.     mstsym.c    mstdict.c   mstoop.c    mstsave.c   mstcint.c \
  59.     mstsysdep.c mstcallin.c 
  60.  
  61.  
  62. LIBS =  $(DEFAULT_LIBRARIES) $(USER_LIBS) $(READLINELIB) $(DLDLIB)
  63.  
  64.  
  65. all: mst
  66.  
  67. mst: $(OBJS)
  68.     $(CC) $(BINDING) -o mst $(CFLAGS) $(OBJS) $(LIBS) -lm
  69.  
  70. mst.tab.h mst.tab.c: mst.y
  71.     bison -dv mst.y
  72.  
  73. mstlib.o mstlex.c: mst.tab.h
  74.  
  75. mstlex.o: mst.tab.h
  76.  
  77. mstsave.o mstoop.o mstlib.o mstsym.o: mstoop.h
  78.  
  79. mstlib.o: mst.h
  80. mstlib.o: mstconfig.h
  81. mstlib.o: mst.tab.h
  82. mstlib.o: mstinterp.h
  83. mstlib.o: mstcomp.h
  84. mstlib.o: mstsave.h
  85. mstlib.o: mstsym.h
  86. mstlib.o: mstoop.h
  87. mstlib.o: mstpaths.h
  88. mstlib.o: mstlib.h
  89.  
  90. mst.tab.o: mst.h
  91. mst.tab.o: mstconfig.h
  92. mst.tab.o: mstsym.h
  93. mst.tab.o: msttree.h
  94. mst.tab.o: mstdict.h
  95. mst.tab.o: mstcomp.h
  96. mst.tab.o: mstinterp.h
  97.  
  98. mstlex.o: mst.h
  99. mstlex.o: mstconfig.h
  100. mstlex.o: mstlex.h
  101. mstlex.o: mst.tab.h
  102. mstlex.o: mststr.h
  103. mstlex.o: mstid.h
  104. mstlex.o: mstdict.h
  105. mstlex.o: mstcomp.h
  106. mstlex.o: mstinterp.h
  107. mstlex.o: msttree.h
  108. mstlex.o: mstsysdep.h
  109.  
  110. mststr.o: mststr.h
  111.  
  112. mstid.o: mststr.h
  113. mstid.o: mstid.h
  114.  
  115. msttree.o: mst.h
  116. msttree.o: mstconfig.h
  117. msttree.o: mstsym.h
  118. msttree.o: msttree.h
  119.  
  120. mstbyte.o: mst.h
  121. mstbyte.o: mstconfig.h
  122. mstbyte.o: mstbyte.h
  123.  
  124. mstinterp.o: mst.h
  125. mstinterp.o: mstconfig.h
  126. mstinterp.o: mstinterp.h
  127. mstinterp.o: mstdict.h
  128. mstinterp.o: mstsym.h
  129. mstinterp.o: mstoop.h
  130. mstinterp.o: mstsave.h
  131. mstinterp.o: mstcomp.h
  132. mstinterp.o: mstcint.h
  133. mstinterp.o: mstsysdep.h
  134.  
  135. mstcomp.o: mst.h
  136. mstcomp.o: mstconfig.h
  137. mstcomp.o: mstsym.h
  138. mstcomp.o: mstcomp.h
  139. mstcomp.o: mstinterp.h
  140. mstcomp.o: msttree.h
  141. mstcomp.o: mstbyte.h
  142. mstcomp.o: mstdict.h
  143. mstcomp.o: mstoop.h
  144. mstcomp.o: mstinterp.h
  145. mstcomp.o: mstlex.h
  146.  
  147. mstsym.o: mst.h
  148. mstsym.o: mstconfig.h
  149. mstsym.o: mstsym.h
  150. mstsym.o: mstoop.h
  151. mstsym.o: mstcomp.h
  152. mstsym.o: mstinterp.h
  153. mstsym.o: mstdict.h
  154. mstsym.o: msttree.h
  155.  
  156. mstdict.o: mst.h
  157. mstdict.o: mstconfig.h
  158. mstdict.o: mstdict.h
  159. mstdict.o: mstoop.h
  160. mstdict.o: mstinterp.h
  161. mstdict.o: mststr.h
  162. mstdict.o: mstsym.h
  163.  
  164. mstoop.o: mst.h
  165. mstoop.o: mstconfig.h
  166. mstoop.o: mstoop.h
  167. mstoop.o: mstdict.h
  168. mstoop.o: mstsave.h
  169. mstoop.o: mstcomp.h
  170. mstoop.o: mstinterp.h
  171.  
  172. mstsave.o: mst.h
  173. mstsave.o: mstconfig.h
  174. mstsave.o: mstsave.h
  175. mstsave.o: mstcomp.h
  176. mstsave.o: mstinterp.h
  177. mstsave.o: mstinterp.h
  178. mstsave.o: mstdict.h
  179. mstsave.o: mstsym.h
  180. mstsave.o: mstoop.h
  181. mstsave.o: mstlib.h
  182.  
  183. mstcint.o: mstcint.c
  184. mstcint.o: mst.h
  185. mstcint.o: mstconfig.h
  186. mstcint.o: mstinterp.h
  187. mstcint.o: mstdict.h
  188. mstcint.o: mstoop.h
  189. mstcint.o: mstsym.h
  190. mstcint.o: mstcallin.h
  191.  
  192. mstcallin.o: mst.h
  193. mstcallin.o: mstinterp.h
  194. mstcallin.o: mstcallin.h
  195. mstcallin.o: mstdict.h
  196. mstcallin.o: mstsym.h
  197. mstcallin.o: mstoop.h
  198.  
  199.  
  200. lint: $(SRCS)
  201.     lint $(SRCS)
  202.  
  203. lexdebug:
  204.     $(CC) -c $(XCFLAGS) -DLEXDEBUG mstlib.c
  205.     $(MAKE) -f xmakefile mst
  206.  
  207. profile:
  208.     make CFLAGS='$(CFLAGS) -pg -Dprofiling'
  209.  
  210. diffs:
  211.     mk_mst_diffs
  212.  
  213. setup:
  214.     @if [ -f ./orig ] ; then \
  215.         echo "./orig exists, but is not a directory" ; \
  216.         exit 1 ; \
  217.     fi
  218.     rm -rf ./orig
  219.     mkdir ./orig
  220.     tar cbf 20 - `cat mstfiles` | (cd ./orig; tar xbBf 20 -)
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.