home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / winterp-1.13 / src-server / xlisp / Makefile.hpux8 < prev    next >
Encoding:
Makefile  |  1991-10-06  |  8.0 KB  |  252 lines

  1. ################################################################################
  2. #
  3. # File:         Makefile.hpux8
  4. # RCS:          $Header: Makefile.hpux8,v 1.1 91/04/22 01:26:06 mayer Exp $
  5. # Description:  Makefile for WINTERP on s300/s700/s800 HPUX 8.0
  6. # Author:       Niels Mayer, HPLabs
  7. # Created:      Mon Oct 23 21:00:37 1989
  8. # Modified:     Sat Oct  5 22:24:21 1991 (Niels Mayer) mayer@hplnpm
  9. # Language:     N/A
  10. # Package:      N/A
  11. # Status:       X11r5 contrib tape release
  12. #
  13. # WINTERP Copyright 1989, 1990, 1991 Hewlett-Packard Company (by Niels Mayer).
  14. # XLISP version 2.1, Copyright (c) 1989, by David Betz.
  15. #
  16. # Permission to use, copy, modify, distribute, and sell this software and its
  17. # documentation for any purpose is hereby granted without fee, provided that
  18. # the above copyright notice appear in all copies and that both that
  19. # copyright notice and this permission notice appear in supporting
  20. # documentation, and that the name of Hewlett-Packard and David Betz not be
  21. # used in advertising or publicity pertaining to distribution of the software
  22. # without specific, written prior permission.  Hewlett-Packard and David Betz
  23. # make no representations about the suitability of this software for any
  24. # purpose. It is provided "as is" without express or implied warranty.
  25. #
  26. # HEWLETT-PACKARD AND DAVID BETZ DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  27. # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
  28. # IN NO EVENT SHALL HEWLETT-PACKARD NOR DAVID BETZ BE LIABLE FOR ANY SPECIAL,
  29. # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  30. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  31. # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  32. # PERFORMANCE OF THIS SOFTWARE.
  33. #
  34. # See ./winterp/COPYRIGHT for information on contacting the authors.
  35. #
  36. # Please send modifications, improvements and bugfixes to mayer@hplabs.hp.com
  37. # Post XLISP-specific questions/information to the newsgroup comp.lang.lisp.x
  38. #
  39. ################################################################################
  40.  
  41. #
  42. # Note on INCLUDES for Motif 1.0:
  43. # ==============================
  44. # Motif 1.0 does not use the standard X11r4 toolkit, therefore you must
  45. # make sure that you are compiling Motif 1.0 programs with the headers
  46. # associated with Motif 1.0, not the X11r4 headers.
  47. #
  48. # Standard locations for Motif includes are /usr/include/X11 and
  49. # /usr/include/Xm. Note that Motif 1.0 uses a variant of the X11r3 toolkit
  50. # intrinsics headers which are installed in /usr/include/X11. Don't
  51. # confuse these    with the incompatible Xtoolkit intrinsics from X11r4.
  52. #
  53. # IF YOUR INSTALLATION OF MOTIF PLACES THE INCLUDE FILES FOR MOTIF's Xt/Xm
  54. # DIRECTORIES SOMEWHERE OTHER THAN cc's USUAL INCLUDE SEARCH PATH
  55. # (normally -I/usr/include -I.), THEN YOU WILL HAVE TO SET 'INCLUDES' BELOW
  56. # TO THE APPROPRIATE LOCATION.
  57. #
  58. #
  59. # Note on INCLUDES for Motif 1.1:
  60. # ==============================
  61. # Motif 1.1 uses the X11r4 Xlib, libXt, etc, however, Motif 1.1 is not
  62. # included as part of the X11r4 distribution.  Make sure that you either
  63. # have the X11r4 and Motif headers installed, or that you are setting
  64. # INCLUDES so that the appropriate include directories are used.
  65. # IF YOUR INSTALLATION OF MOTIF PLACES THE INCLUDE FILES FOR MOTIF's Xm
  66. # DIRECTORIES SOMEWHERE OTHER THAN cc's USUAL INCLUDE SEARCH PATH
  67. # (e.g. /usr/include/Xm), THEN YOU WILL HAVE TO SET 'INCLUDES' BELOW
  68. # TO THE APPROPRIATE LOCATION.
  69. #            --------------------
  70. # NOTE: if you modify INCLUDES below, you must also do the same 
  71. # modification in ../Makefile.hpux8
  72. #
  73.  
  74. # INCLUDES = -I. -I/mnt0/src/OSFMotif1.1.1 -I/mnt0/src/OSFMotif1.1.1/X11 -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11
  75. # INCLUDES = -I. -I/usr/include
  76. INCLUDES = -I. -I/usr/include/X11R4 -I/usr/include/Motif1.1
  77.  
  78.  
  79. #
  80. # Note on DEFINES:
  81. # (1) -DWINTERP: xlisp/xlisp.h and xlisp/xldmem.h (which are included by all
  82. # WINTERP files) have '#ifdef WINTERP' surrounding changes made to XLISP
  83. # for use by WINTERP: you MUST compile with -DWINTERP or nothing will work.
  84. #
  85. # (2) -DSYSV and -Dhpux are used to make X11 software more portable, in
  86. # conjuction with macros in X11/Xos.h.
  87. #
  88. # (3) -DMALLOC_0_RETURNS_NULL is needed on HPUX 7.0 when linking with
  89. # the fast malloc library "-lmalloc".
  90. #
  91. # (4) -D_NO_PROTO: this is required by Motif 1.1 if you are using a
  92. # non-ANSI-C compiler. Eventually everybody will have an ANSI C compiler
  93. # and at that point this flag should be removed.
  94. #            --------------------
  95. # NOTE: if you modify DEFINES below, you must also do the same 
  96. # modification in ../Makefile.hpux8
  97. #
  98.  
  99. DEFINES = -DWINTERP -DSYSV -Dhpux -DMALLOC_0_RETURNS_NULL -D_NO_PROTO $(USER_DEFINES)
  100.  
  101.  
  102. CFLAGS = $(INCLUDES) $(DEFINES)
  103.  
  104.  
  105. OPTIMIZER = -O
  106.  
  107.  
  108. ##############################################################################
  109. LINT = /usr/bin/lint
  110. .SUFFIXES: .ln .c
  111. .c.ln:
  112.     $(LINT) -c $*.c $(DEFINES)
  113.  
  114.  
  115. ##############################################################################
  116. .c.o:
  117.     $(CC) -c $(OPTIMIZER) $*.c $(CFLAGS)
  118.  
  119.  
  120. ##############################################################################
  121. HDRS          = osdefs.h \
  122.         osptrs.h \
  123.         xldmem.h \
  124.         xlisp.h
  125.  
  126. SRCS          = unixstuff.c \
  127.         xlbfun.c \
  128.         xlcont.c \
  129.         xldbug.c \
  130.         xldmem.c \
  131.         xleval.c \
  132.         xlfio.c \
  133.         xlglob.c \
  134.         xlimage.c \
  135.         xlinit.c \
  136.         xlio.c \
  137.         xljump.c \
  138.         xllist.c \
  139.         xlmath.c \
  140.         xlobj.c \
  141.         xlpp.c \
  142.         xlprin.c \
  143.         xlread.c \
  144.         xlstr.c \
  145.         xlstruct.c \
  146.         xlsubr.c \
  147.         xlsym.c \
  148.         xlsys.c
  149.  
  150. OBJS          = $(SRCS:.c=.o)
  151.  
  152. LINTS          = $(SRCS:.c=.ln)
  153.  
  154. ##############################################################################
  155. DEST          = .
  156.  
  157. INSTALL          = install
  158.  
  159. LIBRARY          = libXlisp.a
  160.  
  161. LINT_LIB      = llib-Xlisp.ln
  162.  
  163. MAKEFILE      = Makefile.hpux8
  164.  
  165. PRINT          = pr
  166.  
  167. SHELL          = /bin/sh
  168.  
  169. all::        $(LIBRARY)
  170.  
  171. $(LIBRARY):    $(OBJS)
  172.         @echo "Loading $(LIBRARY) ..."
  173.         ar cruv $(LIBRARY) $(OBJS)
  174.         @echo "$(LIBRARY) done"
  175.  
  176. $(LINT_LIB):    $(LINTS)
  177.         @echo "Loading $(LINT_LIB) ..."
  178.         $(LINT) -o Xlisp -x $(LINTS)
  179.         @echo "$(LINT_LIB) done"
  180.  
  181. lisp::
  182.         @echo "Making XLISP ..."
  183.         @echo "    Deleteing WINTERP *.o files for recompiling xlisp sources without -DWINTERP."
  184.         rm -f $(OBJS) xlisp.o xlftab.o
  185.         make -f Makefile.hpux8 "CFLAGS=-DUNIX" "OPTIMIZER=-O" xlisp
  186.         @echo "    Deleteing XLISP *.o files to ensure future WINTERP compilations uses XLISP sources compiled with -DWINTERP."
  187.         rm -f $(OBJS)
  188.         @echo "Done Making XLISP."
  189.  
  190. #
  191. # Note that if you've compiled winterp previously, you should delete the *.o
  192. # files in this directory, since those were compiled with -DWINTERP which will
  193. # require that extra X11/Motif/Winterp code be linked in with the exectable.
  194. #        
  195. xlisp:        xlisp.o xlftab.o $(OBJS)
  196.         @echo "    Loading XLISP ..."
  197.         $(CC) -O -s -o xlisp xlisp.o xlftab.o $(OBJS) -lm -lmalloc
  198.         @echo "    done"
  199.  
  200. clean:;        rm -f $(OBJS) $(LINTS) core xlisp.o xlftab.o
  201.  
  202. clobber:;    rm -f $(OBJS) $(LIBRARY) $(LINTS) $(LINT_LIB) core tags xlisp xlisp.o xlftab.o
  203.  
  204. depend:;    mkmf -f $(MAKEFILE) ROOT=$(ROOT)
  205.  
  206. echo:;        @echo $(HDRS) $(SRCS)
  207.  
  208. extract:;    ar x $(DEST)/$(LIBRARY)
  209.  
  210. index:;        ctags -wx $(HDRS) $(SRCS)
  211.  
  212. install:    $(LIBRARY)
  213.         @echo Installing $(LIBRARY) in $(DEST)
  214.         if [ $(DEST) != . ]; then \
  215.         (rm -f $(DEST)/$(LIBRARY); $(INSTALL) -f $(DEST) $(LIBRARY)); fi
  216.  
  217. print:;        $(PRINT) $(HDRS) $(SRCS)
  218.  
  219. tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
  220.  
  221. update:         $(DEST)/$(LIBRARY)
  222.  
  223. $(DEST)/$(LIBRARY): $(SRCS) $(HDRS)
  224.         $(MAKE) -f $(MAKEFILE) ROOT=$(ROOT) DEST=$(DEST) install
  225. ###
  226. unixstuff.o:    xlisp.h xldmem.h
  227. xlbfun.o:    xlisp.h xldmem.h
  228. xlcont.o:    xlisp.h xldmem.h
  229. xldbug.o:    xlisp.h xldmem.h
  230. xldmem.o:    xlisp.h xldmem.h
  231. xleval.o:    xlisp.h xldmem.h
  232. xlfio.o:    xlisp.h xldmem.h
  233. xlftab.o:    xlisp.h xldmem.h
  234. xlglob.o:    xlisp.h xldmem.h
  235. xlimage.o:    xlisp.h xldmem.h
  236. xlinit.o:    xlisp.h xldmem.h
  237. xlio.o:        xlisp.h xldmem.h
  238. xlisp.o:    xlisp.h xldmem.h
  239. xljump.o:    xlisp.h xldmem.h
  240. xllist.o:    xlisp.h xldmem.h
  241. xlmath.o:    xlisp.h xldmem.h
  242. xlobj.o:    xlisp.h xldmem.h
  243. xlpp.o:        xlisp.h xldmem.h
  244. xlprin.o:    xlisp.h xldmem.h
  245. xlread.o:    xlisp.h xldmem.h
  246. xlstr.o:    xlisp.h xldmem.h
  247. xlstruct.o:    xlisp.h xldmem.h
  248. xlsubr.o:    xlisp.h xldmem.h
  249. xlsym.o:    xlisp.h xldmem.h
  250. xlsys.o:    xlisp.h xldmem.h
  251.