home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / pico / makefile.msc < prev    next >
Makefile  |  1998-02-27  |  3KB  |  117 lines

  1. # $Id: makefile.msc,v 4.14 1998/02/28 00:10:21 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1998 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. #
  27. # Makefile for MS-DOS version of the PINE composer library and 
  28. # stand-alone editor pico.
  29. #
  30. # MSC version of makefile
  31. #
  32. CC=cl
  33. RM=del
  34. CP=copy 
  35.  
  36. #includes mouse support
  37. MOUSE=        -DMOUSE
  38. #includes symbol info for debugging 
  39. DEBUG=            #-Zi -Od
  40.  
  41. !IF    DEFINED(PCTCP)
  42. NET=    -DPCTCP
  43. !ELSE
  44. NET=
  45. !ENDIF
  46.  
  47. #in general, no debugging and optimize for size
  48. CFLAGS=    -Os $(DEBUG) -WX -AL -Gt4 -Gy $(NET) -DJOB_CONTROL -DDOS $(MOUSE)
  49.  
  50. # switches for library building
  51. LIBER=lib
  52. LIBARGS=/NOL -+
  53.  
  54. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  55.  
  56. CFILES=        attach.c basic.c bind.c browse.c \
  57.         buffer.c composer.c display.c file.c fileio.c \
  58.         line.c pico_os.c pico.c random.c region.c \
  59.         search.c window.c word.c
  60.  
  61. OFILES=        attach.obj basic.obj bind.obj browse.obj \
  62.         buffer.obj composer.obj display.obj file.obj fileio.obj \
  63.         line.obj pico_os.obj pico.obj random.obj region.obj \
  64.         search.obj window.obj word.obj
  65.  
  66. all:        blddate.exe pico.exe
  67.  
  68. .c.obj:
  69.     $(CC) -c $(CFLAGS) $*.c
  70.     $(LIBER) libpico $(LIBARGS) $*;
  71.  
  72. $(OFILES):    $(HFILES)
  73. pico.o:        ebind.h
  74.  
  75. #
  76. # dependencies for the Unix versions of pico and libpico.a
  77. #
  78. os.h:        osdep\os-dos.h
  79.         $(RM) os.h
  80.         $(CP) osdep\os-dos.h os.h
  81.  
  82. pico_os.c:    osdep\os-dos.c
  83.         $(RM) pico_os.c
  84.         $(CP) osdep\os-dos.c pico_os.c
  85.  
  86. osdep\os-dos.c:    osdep\header osdep\dos osdep\dosgen osdep\term.dos
  87.         cd osdep
  88.         $(MAKE) -f makefile.dos includer.exe os-dos.c
  89.         cd ..
  90.  
  91. pico_os.o:    osdep\dos_gen.h
  92.  
  93.  
  94. libpico.lib:    $(OFILES)
  95. #    del libpico.lib
  96. #    $(LIBER) libpico +ansi+attach+basic+bind+browse;
  97. #    $(LIBER) libpico +buffer+composer+display+file+fileio;
  98. #    $(LIBER) libpico +line+ibmpc+osdep+pico+random+region;
  99. #    $(LIBER) libpico +search+spell+window+word;
  100.  
  101. blddate.exe:    blddate.c
  102.     $(CC) blddate.c
  103.  
  104. main.obj: main.c $(HFILES)
  105.     $(CC) /c $(CFLAGS) main.c
  106.  
  107. pico.exe: libpico.lib main.obj
  108.     link /I /NOI /NOE /stack:32768 main.obj,pico.exe,nul,libpico.lib;
  109. #    link /CO /I /NOI /NOE /stack:32768 main.obj,pico.exe,nul,libpico.lib;
  110.  
  111. #clean:
  112. #        $(RM) *.lib
  113. #        $(RM) *.obj
  114. #        $(RM) pico_os.c
  115. #        $(RM) os.h
  116. #
  117.