home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / xsaver / part02 / Makefile < prev    next >
Encoding:
Makefile  |  1989-03-10  |  7.7 KB  |  261 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.37 88/10/08 20:08: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. # X Window System Makefile generated from template file Imake.tmpl
  11. # $XConsortium: Imake.tmpl,v 1.91 88/10/23 22:37:10 jim Exp $
  12. #
  13. # Do not change the body of the imake template file.  Server-specific
  14. # parameters may be set in the appropriate .macros file; site-specific
  15. # parameters (but shared by all servers) may be set in site.def.  If you
  16. # make any changes, you'll need to rebuild the makefiles using
  17. # "make World" (at best) or "make Makefile; make Makefiles" (at least) in
  18. # the top level directory.
  19. #
  20. # If your C preprocessor doesn't define any unique symbols, you'll need
  21. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  22. # "make Makefile", "make Makefiles", or "make World").
  23. #
  24. # If you absolutely can't get imake to work, you'll need to set the
  25. # variables at the top of each Makefile as well as the dependencies at the
  26. # bottom (makedepend will do this automatically).
  27. #
  28.  
  29. ###########################################################################
  30. # platform-specific configuration parameters - edit Sun.macros to change
  31.  
  32. # platform:  $XConsortium: Sun.macros,v 1.52 88/10/23 11:00:55 jim Exp $
  33. # operating system:   SunOS 3.4
  34.  
  35. BOOTSTRAPCFLAGS =
  36.              AS = as
  37.              CC = cc
  38.             CPP = /lib/cpp
  39.              LD = ld
  40.            LINT = lint
  41.         INSTALL = install
  42.            TAGS = ctags
  43.              RM = rm -f
  44.              MV = mv
  45.              LN = ln -s
  46.          RANLIB = ranlib
  47. RANLIBINSTFLAGS = -t
  48.              AR = ar clq
  49.              LS = ls
  50.        LINTOPTS = -xz
  51.     LINTLIBFLAG = -C
  52.            MAKE = make
  53. STD_CPP_DEFINES =
  54.     STD_DEFINES =
  55.  
  56. ###########################################################################
  57. # site-specific configuration parameters - edit site.def to change
  58.  
  59. # site:  $XConsortium: site.def,v 1.16 88/10/12 10:30:24 jim Exp $
  60.  
  61. ###########################################################################
  62. # definitions common to all Makefiles - do not edit
  63.  
  64.           SHELL =  /bin/sh
  65.  
  66.         DESTDIR = /global
  67.       USRLIBDIR = $(DESTDIR)/lib
  68.          BINDIR = $(DESTDIR)/bin/X11
  69.          INCDIR = $(DESTDIR)/include
  70.          ADMDIR = $(DESTDIR)/usr/adm
  71.          LIBDIR = $(USRLIBDIR)/X11
  72.      LINTLIBDIR = $(USRLIBDIR)/lint
  73.         FONTDIR = $(LIBDIR)/fonts
  74.        XINITDIR = $(LIBDIR)/xinit
  75.          XDMDIR = $(LIBDIR)/xdm
  76.          UWMDIR = $(LIBDIR)/uwm
  77.          AWMDIR = $(LIBDIR)/awm
  78.          TWMDIR = $(LIBDIR)/twm
  79.           DTDIR = $(LIBDIR)/dt
  80.         MANPATH = /usr/man
  81.   MANSOURCEPATH = $(MANPATH)/man
  82.          MANDIR = $(MANSOURCEPATH)n
  83.       LIBMANDIR = $(MANSOURCEPATH)n3
  84.     XAPPLOADDIR = $(LIBDIR)/app-defaults
  85.  
  86.    INSTBINFLAGS = -m 0755
  87.    INSTUIDFLAGS = -m 4755
  88.    INSTLIBFLAGS = -m 0664
  89.    INSTINCFLAGS = -m 0444
  90.    INSTMANFLAGS = -m 0444
  91.    INSTAPPFLAGS = -m 0444
  92.   INSTKMEMFLAGS = -m 4755
  93.         FCFLAGS = -t
  94.     CDEBUGFLAGS = -O
  95.  
  96.         PATHSEP = /
  97.          DEPEND = $(BINDIR)/makedepend
  98.           IMAKE = $(BINDIR)/imake
  99.             RGB = $(LIBDIR)/rgb
  100.              FC = $(BINDIR)/bdftosnf
  101.       MKFONTDIR = $(BINDIR)/mkfontdir
  102.       MKDIRHIER = $(BINDIR)/mkdirhier.sh
  103.  
  104.          CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
  105.       LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
  106.         LDFLAGS = $(CDEBUGFLAGS) -L$(USRLIBDIR) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
  107.  
  108.        IRULESRC = $(LIBDIR)/imake.includes
  109.  
  110.    EXTENSIONLIB = $(USRLIBDIR)/libext.a
  111.            XLIB = $(USRLIBDIR)/libX11.a
  112.          XMULIB = $(USRLIBDIR)/libXmu.a
  113.         OLDXLIB = $(USRLIBDIR)/liboldX.a
  114.        XTOOLLIB = $(USRLIBDIR)/libXt.a
  115.          XAWLIB = $(USRLIBDIR)/libXaw.a
  116.        LINTXLIB = $(USRLIBDIR)/lint/llib-lX11.ln
  117.         LINTXMU = $(USRLIBDIR)/lint/llib-lXmu.ln
  118.       LINTXTOOL = $(USRLIBDIR)/lint/llib-lXt.ln
  119.         LINTXAW = $(USRLIBDIR)/lint/llib-lXaw.ln
  120.        INCLUDES = -I$(INCDIR)
  121.       MACROFILE = Sun.macros
  122.    ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
  123.             $(IRULESRC)/$(MACROFILE) $(IRULESRC)/site.def
  124.   IMAKE_DEFINES =
  125.       IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl -I$(NEWTOP)$(IRULESRC) \
  126.             -s Makefile $(IMAKE_DEFINES)
  127.          RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
  128.             .emacs_* tags TAGS make.log MakeOut
  129.  
  130. ###########################################################################
  131. # rules:  $XConsortium: Imake.rules,v 1.71 88/10/23 22:46:34 jim Exp $
  132.  
  133. ###########################################################################
  134. # start of Imakefile
  135.  
  136. BITMAPDIR       =       /global/bitmaps
  137. ICONBITMAP    =    SigmaPiBeta
  138. FLOATBITMAP    =    yinyang
  139. ICONPIXMAP    =    SigmaPiBeta
  140. BITMAPS        =    $(ICONBITMAP) $(FLOATBITMAP) $(ICONPIXMAP)
  141. SYS_LIBRARIES   = $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB) -lm
  142. LOCAL_LIBRARIES =
  143. SRCS         =    main.c scaling.c List.c password.c savescreen.c\
  144.             menuIcon.c PromptBox.c util.c
  145. OBJS        =    main.o scaling.o List.o password.o savescreen.o\
  146.             menuIcon.o PromptBox.o util.o
  147. TARGET=xsaver
  148.  
  149. all:: $(TARGET) Xsaver.ad xsaver.man
  150.  
  151.  PROGRAM = $(TARGET)
  152.  
  153. all:: $(TARGET)
  154.  
  155. $(TARGET): $(OBJS) $(LOCAL_LIBRARIES)
  156.     $(RM) $@
  157.     $(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS) $(SYSLAST_LIBRARIES)
  158.  
  159. relink::
  160.     $(RM) $(PROGRAM)
  161.     $(MAKE) $(MFLAGS) $(PROGRAM)
  162.  
  163. install:: $(TARGET)
  164.     $(INSTALL) -c $(INSTALLFLAGS) $(TARGET) $(BINDIR)
  165.  
  166. install.man:: $(TARGET).man
  167.     $(INSTALL) -c $(INSTMANFLAGS) $(TARGET).man $(MANDIR)/$(TARGET).n
  168.  
  169. depend:: $(DEPEND)
  170.  
  171. depend::
  172.     $(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)
  173.  
  174. $(DEPEND):
  175.     @echo "making $@"; \
  176.     cd $(DEPENDSRC); $(MAKE)
  177.  
  178. clean::
  179.     $(RM) $(PROGRAM)
  180.  
  181. lint:
  182.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  183. lint1:
  184.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  185.  
  186. install.man:: xsaver.man.man
  187.     $(INSTALL) -c $(INSTMANFLAGS) xsaver.man.man $(MANDIR)/xsaver.man.n
  188.  
  189. install:: Xsaver.ad
  190.     $(INSTALL) -c $(INSTAPPFLAGS) Xsaver.ad $(XAPPLOADDIR)/Xsaver
  191.  
  192. install:: $(BITMAPS)
  193.     @case '${MFLAGS}' in *[i]*) set +e;; esac; \
  194.     for i in $(BITMAPS); do \
  195.     (set -x; $(INSTALL) -c $(INSTALLFLAGS) $$i $(BITMAPDIR)); \
  196.     done
  197.  
  198. Xsaver.ad: Xsaver.sed
  199.     sed -e 's|$$BITMAPDIR|$(BITMAPDIR)|g'\
  200.         -e 's|$$ICONPIXMAP|$(ICONPIXMAP)|g'\
  201.         -e 's|$$ICONBITMAP|$(ICONBITMAP)|g'\
  202.         -e 's|$$FLOATBITMAP|$(FLOATBITMAP)|g'\
  203.         Xsaver.sed > $@
  204.  
  205. xsaver.man: xsaver.man.s
  206.     sed -e 's|$$TARGET|$(TARGET)|g'\
  207.         -e 's|$$APPDIR|$(APPDIR)|g'\
  208.         -e 's|$$APPTARGET|$(APPTARGET)|g'\
  209.         -e 's|$$BITMAPDIR|$(BITMAPDIR)|g'\
  210.         -e 's|$$ICONPIXMAP|$(ICONPIXMAP)|g'\
  211.         -e 's|$$ICONBITMAP|$(ICONBITMAP)|g'\
  212.         -e 's|$$FLOATBITMAP|$(FLOATBITMAP)|g'\
  213.         xsaver.man.s > xsaver.man
  214.  
  215. clean::
  216.     rm -f xsaver.man Xsaver.ad $(OBJS)
  217.  
  218. ###########################################################################
  219. # Imake.tmpl common rules for all Makefiles - do not edit
  220.  
  221. emptyrule::
  222.  
  223. clean::
  224.     $(RM_CMD) \#*
  225.  
  226. Makefile:: $(IMAKE)
  227.  
  228. Makefile:: Imakefile \
  229.     $(IRULESRC)/Imake.tmpl \
  230.     $(IRULESRC)/Imake.rules \
  231.     $(IRULESRC)/site.def \
  232.     $(IRULESRC)/$(MACROFILE)
  233.     -@if [ -f Makefile ]; then \
  234.     echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  235.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  236.     else exit 0; fi
  237.     $(IMAKE_CMD) -DTOPDIR=$(TOP)
  238.  
  239. $(IMAKE):
  240.     @echo "making $@"; \
  241.     cd $(IMAKESRC); $(MAKE) BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS)
  242.  
  243. tags::
  244.     $(TAGS) -w *.[ch]
  245.     $(TAGS) -xw *.[ch] > TAGS
  246.  
  247. ###########################################################################
  248. # empty rules for directories that do not have SUBDIRS - do not edit
  249.  
  250. install::
  251.     @echo "install done"
  252.  
  253. install.man::
  254.     @echo "install.man done"
  255.  
  256. Makefiles::
  257.  
  258. ###########################################################################
  259. # dependencies generated by makedepend
  260.  
  261.