home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / textps.os2 < prev    next >
Text File  |  2020-01-01  |  2KB  |  86 lines

  1. # Makefile for "textps"                                       10 Jan 1993
  2. #
  3. # - for GNU gcc (emx kit) under OS/2 2.0 (32-bit)
  4. # - for Microsoft C 6.00 under OS/2 or MSDOS (16-bit)
  5.  
  6. # To use, enter "make -f textps.os2" (this makefile depends on its
  7. # name being "textps.os2").
  8. #
  9. # Tested with dmake 3.8 and GNU make 3.68 under OS/2
  10.  
  11. default:
  12.     @echo "Enter $(MAKE) -f textps.os2 target                     "
  13.     @echo " where 'target' is chosen from                          " 
  14.     @echo "   msc      OS/2 exe [Microsoft C 6.00a]                "
  15.     @echo "   mscbnd   OS/2 and DOS exe [Microsoft C 6.00a]        "
  16.     @echo "   mscdos   DOS exe [Microsoft C 6.00a]                 "
  17.     @echo "   emx      OS/2 32-bit exe [EMX/gcc; uses emxlibc.dll] "
  18.     @echo "   emxbnd   OS/2 and DOS 32-bit exe [EMX/gcc]           "
  19.  
  20. emx:
  21.     $(MAKE) -f textps.os2 all \
  22.     CC="gcc -Zomf -Zmtd" O=".obj" \
  23.     CFLAGS="-O -DOS2" \
  24.     LDFLAGS="-s -Zlinker /PMTYPE:VIO"
  25.  
  26. emxbnd:
  27.     $(MAKE) -f textps.os2 all \
  28.     CC="gcc" O=".o" \
  29.     CFLAGS="-O -DOS2" \
  30.     LDFLAGS="-s"
  31.  
  32. msc:
  33.     $(MAKE) -f textps.os2 all \
  34.     CC="cl -AS" O=".obj" \
  35.     CFLAGS="-DOS2" \
  36.     LDFLAGS="-Lp -F 800 -link /PMTYPE:VIO"
  37.  
  38. mscbnd:
  39.     $(MAKE) -f textps.os2 all \
  40.     CC="cl -AS" O=".obj" \
  41.     CFLAGS="-DOS2" \
  42.     LDFLAGS="-Lp -Fb -F 800 -link /PMTYPE:VIO"
  43.  
  44. mscdos:
  45.     $(MAKE) -f textps.os2 all \
  46.     CC="cl -AS" O=".obj" \
  47.     CFLAGS="" \
  48.     LDFLAGS="-Lr -F 800"
  49.  
  50. # Defaults
  51. CC = cl -AS
  52. O = .obj
  53. CFLAGS = -DOS2
  54. LDFLAGS = -Lp -Fb -F 800 -link /PMTYPE:VIO
  55.  
  56. # Where to install the executables.
  57. bindir = /bin
  58.  
  59. # Where to put the manual pages.
  60. mandir = /etc/man/manl
  61. # Extension (not including `.') for the installed manual page filenames.
  62. manext = l
  63.  
  64. .SUFFIXES:
  65. .SUFFIXES: .obj .o .c
  66.  
  67. .c$O :
  68.     $(CC) $(CFLAGS) -c $<
  69.  
  70. OBJS = textps$O
  71.  
  72. all : textps.exe 
  73.  
  74. textps.exe :    $(OBJS)
  75.         $(CC) -o $@ $(OBJS) $(LDFLAGS)
  76.  
  77. install:
  78.         cp textps.exe $(bindir)
  79.         cp textps.l $(mandir)/textps.$(manext)
  80.  
  81. clean:
  82.         rm -f *.obj *.o core textps.exe
  83.  
  84. # dmake ignores .SUFFIXES, and may try to make textps.c from textps.l
  85. %.c : %.l ;
  86.