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.os2 < prev    next >
Makefile  |  1998-02-27  |  3KB  |  135 lines

  1. # $Id: makefile.os2,v 4.5 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. # Makefile for OS/2 version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29.  
  30. # Common macros
  31.  
  32. CC=    gcc
  33. CP=    cp
  34. MAKE=    make
  35. MV=    mv
  36. RM=    rm -f
  37.  
  38. OS=    os2
  39.  
  40. # emx OMF format build
  41. # Used to build .dlls with data exports
  42.  
  43. DEBUG=
  44. ZOMF=    -Zomf
  45. O=    .obj
  46. A=    .lib
  47. E=    .exe
  48. D=    .dll
  49. AR=    emxomfar r
  50. ZLIB=    -Zcrtdll
  51. ZOPT=    -O3 -fno-strength-reduce -mprobe
  52. ZDEF=    -DOS2 -DOMF
  53.  
  54. .SUFFIXES: .c .obj .exe
  55.  
  56. # emx AOUT format build
  57. # Useful for debugging with gdb
  58.  
  59. #DEBUG=    -g
  60. #ZOMF=    
  61. #O=    .o
  62. #A=    .a
  63. #D=    .dll
  64. #E=    .exe
  65. #AR=    ar rus
  66. #ZLIB=    -Zcrtdll
  67. #ZOPT=    -O3 -fno-strength-reduce -mprobe
  68. #ZDEF=    -DOS2
  69.  
  70. #.SUFFIXES: .c .o .exe
  71.  
  72. .c$O: ; $(CC) $(ZOMF) $(CFLAGS) -c $<
  73.  
  74. #includes symbol for debugging
  75. #for normal build
  76. MOUSE=        -DMOUSE
  77. DASHO=        $(ZOPT) $(DEBUG)
  78. CFLAGS=        $(ZDEF) -Dbsd -DFASTVIO -DHELPFILE -DJOB_CONTROL -DANSI $(MOUSE) $(DASHO)
  79. LDFLAGS=    $(ZOMF) $(ZLIB) $(DEBUG)
  80. ARCHIVE=    picolib$A
  81.  
  82. # switches for library building
  83.  
  84. LIBS=
  85.  
  86. OFILES=        attach$O basic$O bind$O browse$O buffer$O \
  87.         composer$O display$O file$O fileio$O line$O pico_os$O \
  88.         pico$O random$O region$O search$O \
  89.         window$O word$O
  90.  
  91. CFILES=        attach.c basic.c bind.c browse.c buffer.c \
  92.         composer.c display.c file.c fileio.c line.c pico_os.c \
  93.         pico.c random.c region.c search.c \
  94.         window.c word.c
  95.  
  96. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  97.  
  98. #
  99. # dependencies for the Unix versions of pico and pico.lib
  100. #
  101.  
  102. all:        blddate$E pico$E pilot$E
  103.  
  104. $(ARCHIVE):    $(OFILES) picolib.def
  105.         $(CC) -Zdll -o picolib$D $(OFILES) picolib.def $(LDFLAGS)
  106.         emximp -o picolib$A picolib.def
  107.  
  108. pico$E:        main.c $(ARCHIVE)
  109.         $(CC) $(CFLAGS) main.c -L. -lpicolib $(LIBS) -o pico$E $(LDFLAGS)
  110.  
  111. pilot$E:    pilot.c $(ARCHIVE) osdep.h
  112.         $(CC) $(CFLAGS) pilot.c -L. -lpicolib $(LIBS) -o pilot$E $(LDFLAGS)
  113.  
  114. blddate$E:    blddate.c
  115.         $(CC) $(CFLAGS) blddate.c -o blddate$E $(LDFLAGS) -lsocket
  116.  
  117. $(OFILES):    osdep.h $(HFILES)
  118. pico.o:        ebind.h
  119.  
  120. clean:
  121.         rm -f *$E *$A *$D *$O *~ *.bak osdep.c osdep.h pico pilot
  122.  
  123. os.h:        osdep/os-os2.h
  124.         $(RM) os.h
  125.         $(CP) osdep/os-os2.h os.h
  126.  
  127. pico_os.c:    osdep/os-os2.c
  128.         $(RM) pico_os.c
  129.         $(CP) osdep/os-os2.c pico_os.c
  130.  
  131. osdep/os-os2.c: \
  132.     osdep/header osdep/os2 osdep/term.dos osdep/spell.os2 \
  133.     osdep/os-os2.ic
  134.     ( cd osdep && $(MAKE) -f makefile.os2 includer.exe os-os2.c )
  135.