|
|
1.1 ! root 1: ! 2: # ! 3: # This makefile is automatically generated by imake... do not modify ! 4: # or you may lose your changes when imake generates makefiles again. ! 5: # Ignore this message if you are not using imake. ! 6: # ! 7: ! 8: TOP = ./.. ! 9: AS = as ! 10: CC = cc ! 11: CPP = /lib/cpp ! 12: LD = ld ! 13: LINT = lint ! 14: MAKE = make ! 15: CDEBUGFLAGS = -O ! 16: DESTDIR = ! 17: ! 18: INSTALL = install ! 19: TAGS = ctags ! 20: DEPEND = $(DEPENDSRC)/makedepend ! 21: IMAKE = $(IMAKESRC)/imake ! 22: RGB = $(RGBSRC)/rgb ! 23: CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(DEFINES) ! 24: LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) ! 25: INSTLIBFLAGS = -c -m 0664 ! 26: USRLIBDIR = $(DESTDIR)/usr/lib ! 27: BINDIR = $(DESTDIR)/usr/bin/X11 ! 28: LIBDIR = $(DESTDIR)/usr/lib/X11 ! 29: INCDIR = $(DESTDIR)/usr/include/X11 ! 30: FUTUREINCDIR = $(DESTDIR)/usr/include/X ! 31: FONTDIR = $(DESTDIR)$(LIBDIR)/fonts ! 32: MANDIR = $(DESTDIR)/usr/man/mann ! 33: CLIENTSRC = $(TOP)/clients ! 34: DEMOSRC = $(TOP)/demos ! 35: LIBSRC = $(TOP)/lib ! 36: FONTSRC = $(TOP)/fonts ! 37: INCLUDESRC = $(TOP)/include ! 38: SERVERSRC = $(TOP)/server ! 39: UTILSRC = $(TOP)/util ! 40: HACKSRC = $(TOP)/hacks ! 41: DOCSRC = $(TOP)/doc ! 42: DEPENDSRC = $(UTILSRC)/makedepend ! 43: IMAKESRC = $(UTILSRC)/imake ! 44: RGBSRC = $(UTILSRC)/rgb ! 45: XLIBSRC = $(LIBSRC)/X ! 46: XRMSRC = $(LIBSRC)/Xrm ! 47: TOOLKITSRC = $(LIBSRC)/Xtk ! 48: OLDXLIBSRC = $(LIBSRC)/oldX ! 49: OLDXMENUSRC = $(LIBSRC)/oldXMenu ! 50: OLDXRMSRC = $(LIBSRC)/oldXrm ! 51: OLDTOOLKITSRC = $(LIBSRC)/oldXtk ! 52: EXTENSIONSRC = $(TOP)/extensions ! 53: XMANSRC = $(DOCSRC)/Xlib/Xman ! 54: EXTENSIONLIB = $(EXTENSIONSRC)/lib/libXext.a ! 55: XLIB = $(XLIBSRC)/libX.a ! 56: OLDXLIB = $(OLDXLIBSRC)/liboldX.a ! 57: XTOOLLIB = $(TOOLKITSRC)/libXtk.a ! 58: OLDXTOOLLIB = $(OLDTOOLKITSRC)/liboldXtk.a ! 59: OLDXMENULIB = $(OLDXMENUSRC)/libXMenu.a ! 60: XRMLIB = $(XRMSRC)/libXrm.a ! 61: OLDXRMLIB = $(OLDXRMSRC)/liboldXrm.a ! 62: INCLUDES = -I$(TOP) ! 63: MACROFILE = Sunv9.macros ! 64: IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl \ ! 65: -I$(NEWTOP)$(UTILSRC)/imake.includes \ ! 66: -s Makefile ! 67: RM_CMD = rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \ ! 68: tags TAGS make.log ! 69: ! 70: FC = compiler/fc ! 71: SUBDIRS= compiler ! 72: HEADERS = cursorfont.h ! 73: ! 74: all: $(SUBDIRS) fonts ! 75: ! 76: $(SUBDIRS): FRC ! 77: cd $@; echo building $@ ; make $(MFLAGS) all ! 78: ! 79: install:: $(HEADERS) ! 80: @case '${MFLAGS}' in *[i]*) set +e;; esac; \ ! 81: for i in $(HEADERS); do \ ! 82: (set -x; $(INSTALL) -c $(INSTALLFLAGS) $$i $(INCDIR)); \ ! 83: done ! 84: ! 85: install:: snf/?*.snf ! 86: @case '${MFLAGS}' in *[i]*) set +e;; esac; \ ! 87: cd snf; \ ! 88: for i in *.snf; do \ ! 89: (set -x; $(INSTALL) -c $(INSTALLFLAGS) $$i $(LIBDIR)/fonts); \ ! 90: done ! 91: ! 92: # Gruesome hackery suggested by Bill Sommerfeld. ! 93: # The following rule finds all the BDF files, creates a new makefile to ! 94: # compile the changed ones into SNF files, then runs that. ! 95: ! 96: fonts: snf ! 97: make snf/Makefile ! 98: cd snf; make -f Makefile ! 99: ! 100: snf/Makefile: bdf Makefile ! 101: @echo "Building $@"; \ ! 102: rm -f $@; \ ! 103: echo "# This makefile is created automagically by ../Makefile" > $@; \ ! 104: echo 'FC=../$(FC)' >> $@; \ ! 105: echo 'all: \' >> $@; \ ! 106: (cd bdf;/bin/ls *.bdf) \ ! 107: | sed -e 's/\(.*\).bdf$$/\1.snf \\/' -e '$$s/..$$//' >> $@; \ ! 108: echo >> $@; \ ! 109: (cd bdf; /bin/ls *.bdf) \ ! 110: | awk -F. '{printf "%s.snf: ../bdf/%s.bdf $$(FC)\n\t$$(FC) ../bdf/%s.bdf >$$@\n", $$1, $$1, $$1}' >> $@ ! 111: ! 112: snf: ! 113: mkdir snf ! 114: ! 115: depend:: ! 116: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ ! 117: for i in $(SUBDIRS) ;\ ! 118: do \ ! 119: (cd $$i ; echo "depending $$i"; \ ! 120: $(MAKE) $(MFLAGS) depend ); \ ! 121: done ! 122: ! 123: clean:: ! 124: (cd bdf; $(RM_CMD)) ! 125: (cd snf; $(RM_CMD) Makefile *.snf) ! 126: ! 127: FRC: ! 128: ! 129: clean:: ! 130: $(RM_CMD) \#* ! 131: ! 132: Makefile:: Imakefile \ ! 133: $(UTILSRC)/imake.includes/Imake.tmpl \ ! 134: $(UTILSRC)/imake.includes/Imake.rules \ ! 135: $(UTILSRC)/imake.includes/$(MACROFILE) ! 136: -rm -f Makefile.bak; mv Makefile Makefile.bak ! 137: $(IMAKE_CMD) -DTOPDIR=$(TOP) ! 138: ! 139: tags:: ! 140: $(TAGS) -w *.[ch] ! 141: $(TAGS) -xw *.[ch] > TAGS ! 142: ! 143: install:: ! 144: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ ! 145: for i in $(SUBDIRS) ;\ ! 146: do \ ! 147: (cd $$i ; echo "installing $$i"; \ ! 148: INSTALL='$(INSTALL)' DESTDIR='$(DESTDIR)' \ ! 149: $(MAKE) $(MFLAGS) install ); \ ! 150: done ! 151: ! 152: clean:: ! 153: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ ! 154: for i in $(SUBDIRS) ;\ ! 155: do \ ! 156: (cd $$i ; echo "cleaning $$i"; \ ! 157: RM_CMD='$(RM_CMD)' $(MAKE) $(MFLAGS) clean ); \ ! 158: done ! 159: ! 160: tags:: ! 161: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ ! 162: for i in $(SUBDIRS) ;\ ! 163: do \ ! 164: (cd $$i ; echo "tagging $$i"; \ ! 165: TAGS='$(TAGS)' $(MAKE) $(MFLAGS) tags ); \ ! 166: done ! 167: ! 168: Makefiles:: ! 169: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ ! 170: for i in $(SUBDIRS) ;\ ! 171: do \ ! 172: echo "Making Makefiles in $$i..."; \ ! 173: case "$$i" in \ ! 174: ./?*/?*/?*) newtop=../../../ sub=subsubsub;; \ ! 175: ./?*/?*) newtop=../../ sub=subsub;; \ ! 176: ./?*) newtop=../ sub=sub;; \ ! 177: */?*/?*) newtop=../../../ sub=subsubsub;; \ ! 178: */?*) newtop=../../ sub=subsub;; \ ! 179: *) newtop=../ sub=sub;; \ ! 180: esac; \ ! 181: NEWTOP=$$newtop MAKEFILE_SUBDIR=$$i \ ! 182: $(MAKE) $${sub}dirMakefiles; \ ! 183: done ! 184: ! 185: subdirMakefiles: ! 186: rm -f $(MAKEFILE_SUBDIR)/Makefile.bak ! 187: -mv $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak ! 188: cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(TOP)/..; \ ! 189: $(MAKE) $(MFLAGS) Makefiles ! 190: ! 191: subsubdirMakefiles: ! 192: rm -f $(MAKEFILE_SUBDIR)/Makefile.bak ! 193: -mv $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak ! 194: cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(TOP)/../..; \ ! 195: $(MAKE) $(MFLAGS) Makefiles ! 196: ! 197: subsubsubdirMakefiles: ! 198: rm -f $(MAKEFILE_SUBDIR)/Makefile.bak ! 199: -mv $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak ! 200: cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(TOP)/../../..; \ ! 201: $(MAKE) $(MFLAGS) Makefiles ! 202:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.