home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / config / winnt / msvc / makefile.rtt < prev    next >
Makefile  |  2000-10-03  |  3KB  |  116 lines

  1. OS=NT
  2. ENV=WIN32
  3. CPU=i386
  4. !include <$(OS)$(ENV).mak>
  5.  
  6. CC=cl
  7. CFLAGS= /D_X86_ /DWIN32 /DRttx /DRTT /DTokDotH=\"../rtt/ltoken.h\" /DNTConsole
  8. HFLAGS=
  9. LDFLAGS=
  10. LIBS=
  11. YFLAGS=
  12. MAKE = nmake
  13. COPY = copy
  14.  
  15. ROBJS = rttparse.obj rttmain.obj rttlex.obj rttsym.obj rttnode.obj rttout.obj rttmisc.obj\
  16.       rttdb.obj rttinlin.obj rttilc.obj
  17.  
  18. PP_DIR = ../preproc/
  19. P_DOT_H = $(PP_DIR)preproc.h $(PP_DIR)pproto.h ltoken.h ../h/mproto.h\
  20.         ../h/define.h ../h/config.h ../h/typedefs.h ../h/proto.h\
  21.         ../h/cstructs.h ../h/cpuconf.h
  22. POBJS = pout.obj pchars.obj  perr.obj pmem.obj  bldtok.obj macro.obj preproc.obj\
  23.     evaluate.obj files.obj gettok.obj pinit.obj
  24.  
  25. COBJS = ../common/getopt.obj ../common/time.obj ../common/filepart.obj\
  26.       ../common/memory.obj ../common/identify.obj ../common/strtbl.obj\
  27.       ../common/rtdb.obj ../common/literals.obj \
  28.       ../common/alloc.obj
  29.  
  30. ICOBJS=    getopt.obj time.obj filepart.obj memory.obj identify.obj strtbl.obj rtdb.obj\
  31.       literals.obj alloc.obj
  32.  
  33. OBJ = $(ROBJS) $(POBJS) $(COBJS)
  34.  
  35. WOBJS=    ../wincap/file.obj ../wincap/errors.obj ../wincap/dibutil.obj\
  36.     ../wincap/copy.obj ..\runtime\xrwindow.obj ..\runtime\xrwinsys.obj\
  37.     ../runtime/xrwinrsc.obj ../common/dconsole.obj
  38.  
  39. all:
  40.     cd ../common
  41.     $(MAKE) winobjs CONSOLE=NTConsole
  42.     cd ../rtt
  43.     $(MAKE) rtt
  44.  
  45. wrtt:    $(OBJ)
  46.     cd ../common
  47.     $(MAKE) winobjs dconsole.obj
  48.     cd ../rtt
  49.     $(CC) $(CFLAGS) /DWIN32 -c rttmain.c
  50.     $(link) $(linkdebug) $(guiflags) $(OBJ) $(WOBJS) $(guilibs) -out:wrtt.exe
  51.     $(COPY) wrtt.exe ..\..\bin
  52.  
  53. rtt:    $(OBJ)
  54.     $(CC) $(CFLAGS) /DNTConsole /DWIN32 -c rttmain.c
  55.     link @rtt.lnk
  56.     $(COPY) rtt.exe ..\..\bin
  57.  
  58. library:    $(OBJ)
  59.         rm -rf rtt.a
  60.         ar qc rtt.a $(OBJ)
  61.         -(test -f ../../NoRanlib) || (ranlib rtt.a)
  62.  
  63. $(ROBJS): rtt.h rtt1.h rttproto.h $(P_DOT_H)
  64.  
  65. rttdb.obj: ../h/version.h
  66. rttparse.obj : ../h/gsupport.h ../h/path.h ../h/config.h ../h/cstructs.h \
  67.     ../h/proto.h ../h/typedefs.h ../h/cpuconf.h ../h/define.h
  68. rttmain.obj : ../h/path.h
  69.  
  70. pout.obj: $(PP_DIR)pout.c $(P_DOT_H)
  71.     $(CC) -c $(CFLAGS) $(PP_DIR)pout.c 
  72.  
  73. pchars.obj: $(PP_DIR)pchars.c $(P_DOT_H)
  74.     $(CC) -c $(CFLAGS) $(PP_DIR)pchars.c 
  75.  
  76. perr.obj: $(PP_DIR)perr.c $(P_DOT_H)
  77.     $(CC) -c $(CFLAGS) $(PP_DIR)perr.c
  78.  
  79. pmem.obj: $(PP_DIR)pmem.c $(P_DOT_H)
  80.     $(CC) -c $(CFLAGS) $(PP_DIR)pmem.c
  81.  
  82. bldtok.obj: $(PP_DIR)bldtok.c $(P_DOT_H)
  83.     $(CC) -c $(CFLAGS) $(PP_DIR)bldtok.c
  84.  
  85. macro.obj: $(PP_DIR)macro.c $(P_DOT_H)
  86.     $(CC) -c $(CFLAGS) $(PP_DIR)macro.c
  87.  
  88. preproc.obj: $(PP_DIR)preproc.c $(P_DOT_H)
  89.     $(CC) -c $(CFLAGS) $(PP_DIR)preproc.c
  90.  
  91. evaluate.obj: $(PP_DIR)evaluate.c $(P_DOT_H)
  92.     $(CC) -c $(CFLAGS) $(PP_DIR)evaluate.c
  93.  
  94. files.obj: $(PP_DIR)files.c $(P_DOT_H)
  95.     $(CC) -c $(CFLAGS) $(PP_DIR)files.c
  96.  
  97. gettok.obj: $(PP_DIR)gettok.c $(P_DOT_H)
  98.     $(CC) -c $(CFLAGS) $(PP_DIR)gettok.c
  99.  
  100. pinit.obj: $(PP_DIR)pinit.c $(P_DOT_H)
  101.     $(CC) -c $(CFLAGS) $(PP_DIR)pinit.c
  102.  
  103. #
  104. # The following entry is commented out because it is not normally
  105. # necessary to recreate rttparse.c and ltoken.h unless the grammar
  106. # in rttgram.y for the run-time langauge is changed. Recreating these
  107. # files is not normally a part of the installation process. Note that
  108. # on some systems, yacc may not have large enough internal tables to
  109. # translate this grammar.
  110. #
  111. #rttparse.c ltoken.h: rttgram.y
  112. #    yacc -d $(YFLAGS) rttgram.y
  113. #    fgrep -v -x "extern char *malloc(), *realloc();" y.tab.c > rttparse.c
  114. #    rm y.tab.c
  115. #    mv y.tab.h ltoken.h
  116.