home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xodometer / part01 / Makefile.Sun < prev    next >
Encoding:
Makefile  |  1993-04-28  |  10.3 KB  |  361 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. ###########################################################################
  10. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a26214>
  11. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  12. #
  13. # Platform-specific parameters may be set in the appropriate .cf
  14. # configuration files.  Site-wide parameters may be set in the file
  15. # site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. # If your C preprocessor doesn't define any unique symbols, you'll need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make Makefile", "make Makefiles", or "make World").
  20. #
  21. # If you absolutely can't get imake to work, you'll need to set the
  22. # variables at the top of each Makefile as well as the dependencies at the
  23. # bottom (makedepend will do this automatically).
  24. #
  25.  
  26. ###########################################################################
  27. # platform-specific configuration parameters - edit sun.cf to change
  28.  
  29. # platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  30. # operating system:  SunOS 4.1
  31.  
  32. ###########################################################################
  33. # site-specific configuration parameters - edit site.def to change
  34.  
  35. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  36.  
  37.             SHELL = /bin/sh
  38.  
  39.               TOP = .
  40.       CURRENT_DIR = .
  41.  
  42.                AR = ar cq
  43.   BOOTSTRAPCFLAGS =
  44.                CC = cc
  45.  
  46.          COMPRESS = compress
  47.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  48.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  49.           INSTALL = install
  50.                LD = ld
  51.              LINT = lint
  52.       LINTLIBFLAG = -C
  53.          LINTOPTS = -axz
  54.                LN = ln -s
  55.              MAKE = make
  56.                MV = mv
  57.                CP = cp
  58.            RANLIB = ranlib
  59.   RANLIBINSTFLAGS =
  60.                RM = rm -f
  61.      STD_INCLUDES =
  62.   STD_CPP_DEFINES =
  63.       STD_DEFINES =
  64.  EXTRA_LOAD_FLAGS =
  65.   EXTRA_LIBRARIES =
  66.              TAGS = ctags
  67.  
  68.     SHAREDCODEDEF = -DSHAREDCODE
  69.          SHLIBDEF = -DSUNSHLIB
  70.  
  71.     PROTO_DEFINES =
  72.  
  73.      INSTPGMFLAGS =
  74.  
  75.      INSTBINFLAGS = -m 0755
  76.      INSTUIDFLAGS = -m 4755
  77.      INSTLIBFLAGS = -m 0664
  78.      INSTINCFLAGS = -m 0444
  79.      INSTMANFLAGS = -m 0444
  80.      INSTDATFLAGS = -m 0444
  81.     INSTKMEMFLAGS = -m 4755
  82.  
  83.           DESTDIR =
  84.  
  85.      TOP_INCLUDES = -I$(INCROOT)
  86.  
  87.       CDEBUGFLAGS = -O
  88.         CCOPTIONS =
  89.       COMPATFLAGS =
  90.  
  91.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  92.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  93.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  94.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  95.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  96.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  97.    LDCOMBINEFLAGS = -X -r
  98.  
  99.         MACROFILE = sun.cf
  100.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  101.  
  102.     IMAKE_DEFINES =
  103.  
  104.          IRULESRC = $(CONFIGDIR)
  105.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  106.  
  107.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  108.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  109.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  110.  
  111. ###########################################################################
  112. # X Window System Build Parameters
  113. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  114.  
  115. ###########################################################################
  116. # X Window System make variables; this need to be coordinated with rules
  117. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  118.  
  119.           PATHSEP = /
  120.         USRLIBDIR = $(DESTDIR)/usr/local/lib
  121.            BINDIR = $(DESTDIR)/usr/bin/X11
  122.           INCROOT = $(DESTDIR)/usr/include
  123.      BUILDINCROOT = $(TOP)
  124.       BUILDINCDIR = $(BUILDINCROOT)/X11
  125.       BUILDINCTOP = ..
  126.            INCDIR = $(INCROOT)/X11
  127.            ADMDIR = $(DESTDIR)/usr/adm
  128.            LIBDIR = $(USRLIBDIR)/X11
  129.         CONFIGDIR = $(LIBDIR)/config
  130.        LINTLIBDIR = $(USRLIBDIR)/lint
  131.  
  132.           FONTDIR = $(LIBDIR)/fonts
  133.          XINITDIR = $(LIBDIR)/xinit
  134.            XDMDIR = $(LIBDIR)/xdm
  135.            AWMDIR = $(LIBDIR)/awm
  136.            TWMDIR = $(LIBDIR)/twm
  137.            GWMDIR = $(LIBDIR)/gwm
  138.           MANPATH = $(DESTDIR)/usr/man
  139.     MANSOURCEPATH = $(MANPATH)/man
  140.            MANDIR = $(MANSOURCEPATH)n
  141.         LIBMANDIR = $(MANSOURCEPATH)3
  142.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  143.  
  144.         SOXLIBREV = 4.2
  145.           SOXTREV = 4.0
  146.          SOXAWREV = 4.0
  147.         SOOLDXREV = 4.0
  148.          SOXMUREV = 4.0
  149.         SOXEXTREV = 4.0
  150.  
  151.        FONTCFLAGS = -t
  152.  
  153.      INSTAPPFLAGS = $(INSTDATFLAGS)
  154.  
  155.             IMAKE = imake
  156.            DEPEND = makedepend
  157.               RGB = rgb
  158.             FONTC = bdftosnf
  159.         MKFONTDIR = mkfontdir
  160.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  161.  
  162.         CONFIGSRC = $(TOP)/config
  163.         CLIENTSRC = $(TOP)/clients
  164.           DEMOSRC = $(TOP)/demos
  165.            LIBSRC = $(TOP)/lib
  166.           FONTSRC = $(TOP)/fonts
  167.        INCLUDESRC = $(TOP)/X11
  168.         SERVERSRC = $(TOP)/server
  169.           UTILSRC = $(TOP)/util
  170.         SCRIPTSRC = $(UTILSRC)/scripts
  171.        EXAMPLESRC = $(TOP)/examples
  172.        CONTRIBSRC = $(TOP)/../contrib
  173.            DOCSRC = $(TOP)/doc
  174.            RGBSRC = $(TOP)/rgb
  175.         DEPENDSRC = $(UTILSRC)/makedepend
  176.          IMAKESRC = $(CONFIGSRC)
  177.          XAUTHSRC = $(LIBSRC)/Xau
  178.           XLIBSRC = $(LIBSRC)/X
  179.            XMUSRC = $(LIBSRC)/Xmu
  180.        TOOLKITSRC = $(LIBSRC)/Xt
  181.        AWIDGETSRC = $(LIBSRC)/Xaw
  182.        OLDXLIBSRC = $(LIBSRC)/oldX
  183.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  184.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  185.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  186.      EXTENSIONSRC = $(TOP)/extensions
  187.  
  188.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  189.      EXTENSIONLIB =  -lXext
  190.  
  191.           DEPXLIB = $(DEPEXTENSIONLIB)
  192.              XLIB = $(EXTENSIONLIB) -lX11
  193.  
  194.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  195.          XAUTHLIB =  -lXau
  196.  
  197.         DEPXMULIB =
  198.            XMULIB = -lXmu
  199.  
  200.        DEPOLDXLIB =
  201.           OLDXLIB = -loldX
  202.  
  203.       DEPXTOOLLIB =
  204.          XTOOLLIB = -lXt
  205.  
  206.         DEPXAWLIB =
  207.            XAWLIB = -lXaw
  208.  
  209.  LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  210.          LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  211.           LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  212.         LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  213.           LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  214.  
  215.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  216.  
  217.          DEPLIBS1 = $(DEPLIBS)
  218.          DEPLIBS2 = $(DEPLIBS)
  219.          DEPLIBS3 = $(DEPLIBS)
  220.  
  221. ###########################################################################
  222. # Imake rules for building libraries, programs, scripts, and data files
  223. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  224.  
  225. ###########################################################################
  226. # start of Imakefile
  227.  
  228. #
  229. # Imakefile for xodometer.
  230. #
  231. # Stephen O. Lidie, Lehigh University Computing Center, 93/02/11.
  232. #
  233. # lusol@Lehigh.EDU
  234. #
  235. # Prior to running xmkmf inspect/change the following variables:
  236. #
  237. #    BINDIR        binary directoy
  238. #    MANDIR        man page directory
  239. #    RANLIB        what is ranlib (sorry, not defined in AIX)
  240. #    PERLDIR        path name of Perl (it's OK if you don't have Perl!)
  241. #    CDEBUGFLAGS    cc compiler options
  242. #    MATHLIB        name of math library
  243. #    LOCAL_LIBRARIES    which libraries
  244. #
  245. # Then:  xmkmf; make; make install
  246. #
  247.  
  248. #
  249. # Where you want things installed.
  250. #
  251. BINDIR          = /usr/local/bin
  252. MANDIR          = /usr/local/man/man1
  253.  
  254. #
  255. # Whether or not you have/need ranlib.
  256. #
  257. RANLIB        = ranlib    # have or need ranlib
  258. #RANLIB         = /bin/true    # do not have or need ranlib
  259.  
  260. #
  261. # Where to get Perl.  It's OK if you don't have Perl, but expect an error
  262. # from the program genmp during a 'make install' - the error can be safely
  263. # ignored.  I use genmp (generate_man_page) so that the xodometer man page
  264. # is always up-to-date, but the one that you have received in this
  265. # distribution is by definition the latest and greatest.
  266. #
  267. PERLDIR         = /usr/local/bin
  268.  
  269. CDEBUGFLAGS     = -O
  270. MATHLIB         = -lm
  271. LOCAL_LIBRARIES = $(XLIB) $(MATHLIB)
  272.  
  273. SRCS        = xodo.c evap/evap.c
  274. OBJS        = xodo.o evap/evap.o
  275.  
  276. all::    xodo_a xodo
  277.  
  278. clean::
  279.     rm xodo xodo.o xodomm.a evap/evap.o
  280.  
  281. evap/evap.o:    evap/evap.c evap/evap.h
  282.     (cd evap; $(CC) $(CDEBUGFLAGS) -DP_EVAP_MM_PATH=\"$(BINDIR)\" -c evap.c)
  283.  
  284. xodo_a:
  285.     ar rcv xodomm.a evap\/xodo.mm
  286.     $(RANLIB) xodomm.a
  287.     sed -e "s!/usr/local/bin!$(BINDIR)!g" evap/xodo_pdt.skl > evap/xodo_pdt.out
  288.  
  289. install::
  290.     $(INSTALL) -c $(INSTPGMFLAGS) xodo     $(BINDIR)
  291.     $(INSTALL) -c $(INSTPGMFLAGS) xodomm.a $(BINDIR)
  292.     sed -e "s!/usr/local/bin!$(PERLDIR)!" evap/genmp.skl > evap/genmp
  293.     chmod 755 evap/genmp
  294.     @echo " "
  295.     @echo "******* Any errors from genmp can be safely ignored!"
  296.     -evap/genmp $(BINDIR)/xodo 1> /dev/null 2> /dev/null
  297.     @echo "******* Any errors from genmp can be safely ignored!"
  298.     @echo " "
  299.     $(INSTALL) -c $(INSTMANFLAGS) xodo.man $(MANDIR)/xodo.1
  300.  
  301.  PROGRAM = xodo
  302.  
  303. all:: xodo
  304.  
  305. xodo: $(OBJS) $(DEPLIBS)
  306.     $(RM) $@
  307.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  308.  
  309. install:: xodo
  310.     $(INSTALL) -c $(INSTPGMFLAGS)   xodo $(BINDIR)
  311.  
  312. install.man:: xodo.man
  313.     $(INSTALL) -c $(INSTMANFLAGS) xodo.man $(MANDIR)/xodo.n
  314.  
  315. depend::
  316.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  317.  
  318. lint:
  319.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  320. lint1:
  321.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  322.  
  323. clean::
  324.     $(RM) $(PROGRAM)
  325.  
  326. ###########################################################################
  327. # common rules for all Makefiles - do not edit
  328.  
  329. emptyrule::
  330.  
  331. clean::
  332.     $(RM_CMD) \#*
  333.  
  334. Makefile::
  335.     -@if [ -f Makefile ]; then \
  336.     echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  337.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  338.     else exit 0; fi
  339.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  340.  
  341. tags::
  342.     $(TAGS) -w *.[ch]
  343.     $(TAGS) -xw *.[ch] > TAGS
  344.  
  345. ###########################################################################
  346. # empty rules for directories that do not have SUBDIRS - do not edit
  347.  
  348. install::
  349.     @echo "install in $(CURRENT_DIR) done"
  350.  
  351. install.man::
  352.     @echo "install.man in $(CURRENT_DIR) done"
  353.  
  354. Makefiles::
  355.  
  356. includes::
  357.  
  358. ###########################################################################
  359. # dependencies generated by makedepend
  360.  
  361.