home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GAMES / infocom_src.lha / Makefile < prev    next >
Makefile  |  1993-07-15  |  4KB  |  104 lines

  1. -bo
  2. ******************************************************************************
  3. **
  4. **    Infocom -- MakeFile
  5. **
  6.  
  7. SDIR = /H1/PROJECT/INFOCOM        # Directory where source files can be found
  8. ODIR = /R0                        # Directory where output files are to be kept
  9. LIB  = /DD/LIB                    # Directory where library files can be found
  10. DDIR = /DD/DEFS                    # Directory where .h files can be found
  11. RDIR = /H2/RELS/INFOCOM            # Directory where .r files are to be kept
  12. TDIR = /R0                        # Directory where temp files are to be kept
  13.  
  14. CC        = gcc                                            # Use GCC
  15. CDEBUG    = -mnostack-check -fomit-frame-pointer            # Debug flags
  16. #CDEBUG    = -DDEBUG -g -w                                    # Debug flags
  17. CINCL    =                                                 # Extra header file dir
  18. COPTS    = -DKWINDOWS -DRCFILE=".infocomrc"                # Compiler options
  19. COPTMZ1    = -o68 -O -fstrength-reduce -fforce-mem            # Compiler optimization
  20. COPTMZ2 = -fcombine-regs -fdefer-pop                    # Compiler optimization
  21. COPTMZ    = $(COPTMZ1) $(COPTMZ2)                            # Compiler optimization
  22. #COPTMZ    =                                                # Compiler optimization
  23. CFLAGS    = $(CDEBUG) $(COPTS) $(COPTMZ) $(CINCL)            # All flags together
  24.  
  25. ASM        = r68                                            # Assembler program
  26. AFLAGS    = -q                                            # Assembler flags
  27.  
  28. LMODULE    = -e=1 -p=0555                                    # Module settings
  29. LOPTS    =                                                 # Link options
  30. LLIBS    = -L$(LIB)/GCC -L$(LIB)/USR                        # More lib dirs
  31. LFLAGS    = $(LOPTS)
  32.  
  33. P2C        = p2c                                            # Pascal preprocessor
  34.  
  35. STDLIBS    = -l=$(LIB)/GCC/gnulib.l -l=$(LIB)/clibn.l -l=$(LIB)/math.l -l=$(LIB)/usr.l
  36. CPPLIBS    = -l=$(LIB)/GCC/libgpp.l -l=$(LIB)/GCC/gpp.l    # C++ libraries
  37. CIO        = -l=$(LIB)/cio.l                                # Use CIO
  38. CGFX    = -l=$(LIB)/USR/cgfx.l                            # Graphic routines
  39. PLIB    = -l=$(LIB)/P2C/libp2c.l                        # Pascal (p2c)
  40. RAND    = -l=$(LIB)/USR/rand.l                            # Random numbers
  41. CURSES    = -l=$(LIB)/USR/effocurses.l                    # Curses
  42. #CURSES    = -l=$(LIB)/USR/ncurses.l                        # Curses
  43. TERMCAP = -l=$(LIB)/termlib.l                            # Termcap
  44. BLARSLIB= -l=$(LIB)/USR/blarslib.l                        # B.Larson Unix stuff
  45. OS9LIB    = -l=$(LIB)/USR/os9lib.l                        # OS9 Unix stuff
  46.  
  47. OFLAGS    = $(CPPLIBS)                                    # "Collect" (GPP) flags
  48.  
  49. *----------------------------------------------------------------------------*
  50.  
  51. OBJECTS =    enhanced.r file.r fns.r globals.r infocom.r init.r input.r\
  52.             interp.r io.r jump.r message.r object.r options.r\
  53.             page.r plus_fns.r print.r property.r status.r\
  54.             support.r variable.r
  55.  
  56. infocom:    $(OBJECTS)
  57.             chd $(RDIR);\
  58.             l68 $(LIB)/cstart.r $(OBJECTS) $(RAND) $(CGFX)\
  59.                 $(STDLIBS) -g -M=13k -a -e=1 -p=0555 -o=$(ODIR)/$@
  60.  
  61. .infocomrc:        makefile
  62.     @echo "* Default initialization file for UNIX machines" >-$@
  63.     @echo "* This overrides the number of screen rows" >+$@
  64.     @echo "* height 25" >+$@
  65.     @echo "* This overrides the number of screen columns" >+$@
  66.     @echo "* width 80" >+$@
  67.     @echo "* This allows use of ANSI save/restore cursor features" >+$@
  68.     @echo "* save" >+$@
  69.     @echo "* Attributes are specified in this order:" >+$@
  70.     @echo "* normal, inverse, bold, inverse&bold, underline, inverse&underline," >+$@
  71.     @echo "* bold&underline, inverse&bold&underline" >+$@
  72.     @echo "* The following attributes may be specified:" >+$@
  73.     @echo "* normal, high, low, italic, underline, blink, fastblink, reverse" >+$@
  74.     @echo "* f_black, f_red, f_green, f_yellow, f_blue, f_magenta, f_cyan, f_white" >+$@
  75.     @echo "* b_black, b_red, b_green, b_yellow, b_blue, b_magenta, b_cyan, b_white" >+$@
  76.     @echo "* Not all attributes may be supported" >+$@
  77.     @echo "attr b_blue f_white" >+$@
  78.     @echo "attr b_white f_blue" >+$@
  79.     @echo "attr b_blue f_white high" >+$@
  80.     @echo "attr b_white f_white high" >+$@
  81.     @echo "attr b_blue f_red blink" >+$@
  82.     @echo "attr b_white f_red" >+$@
  83.     @echo "attr b_blue f_red high" >+$@
  84.     @echo "attr b_white f_red high" >+$@
  85.  
  86. cleantdir:    always
  87.             @dir $(TDIR) >-$(TDIR)/mydir
  88.             del $(TDIR)/*
  89.  
  90. *----------------------------------------------------------------------------*
  91.  
  92. .c.r:
  93.     $(CC) $*.c -c -o $(RDIR)/$*.r $(CFLAGS)
  94. .c.a:
  95.     $(CC) $*.c -c -o $(TDIR)/$*.a $(CFLAGS) -S
  96. .a.r:
  97.     r68 $*.a -o=$(RDIR)/$*.r  $(AFLAGS)
  98. .p.r:
  99.     $(P2C) $*.p -v -o $(TDIR)/$*.c #16k
  100.     $(CC) $(TDIR)/$*.c -c -o $(RDIR)/$*.r $(CFLAGS)
  101.  
  102.  
  103. $(OBJECTS): infocom.h machine.h #makefile
  104.