|
|
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: #
71: # Be sure to build the toolkit after the old resource manager, because
72: # the clients under the toolkit use it.
73: #
74:
75: SUBDIRS = X \
76: Xrm \
77: oldX \
78: oldXMenu \
79: oldXrm \
80: oldXtk \
81: Xtk
82:
83: all::
84: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
85: for i in $(SUBDIRS) ;\
86: do \
87: (cd $$i ; echo "making $$i"; \
88: $(MAKE) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' $(MFLAGS)); \
89: done
90:
91: depend::
92: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
93: for i in $(SUBDIRS) ;\
94: do \
95: (cd $$i ; echo "depending $$i"; \
96: $(MAKE) $(MFLAGS) depend ); \
97: done
98:
99: lintlib::
100: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
101: for i in $(SUBDIRS) ;\
102: do \
103: (cd $$i ; echo "making lintlib in $$i"; \
104: LINT='$(LINT)' $(MAKE) $(MFLAGS) lintlib ); \
105: done
106:
107: clean::
108: $(RM_CMD) \#*
109:
110: Makefile:: Imakefile \
111: $(UTILSRC)/imake.includes/Imake.tmpl \
112: $(UTILSRC)/imake.includes/Imake.rules \
113: $(UTILSRC)/imake.includes/$(MACROFILE)
114: -rm -f Makefile.bak; mv Makefile Makefile.bak
115: $(IMAKE_CMD) -DTOPDIR=$(TOP)
116:
117: tags::
118: $(TAGS) -w *.[ch]
119: $(TAGS) -xw *.[ch] > TAGS
120:
121: install::
122: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
123: for i in $(SUBDIRS) ;\
124: do \
125: (cd $$i ; echo "installing $$i"; \
126: INSTALL='$(INSTALL)' DESTDIR='$(DESTDIR)' \
127: $(MAKE) $(MFLAGS) install ); \
128: done
129:
130: clean::
131: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
132: for i in $(SUBDIRS) ;\
133: do \
134: (cd $$i ; echo "cleaning $$i"; \
135: RM_CMD='$(RM_CMD)' $(MAKE) $(MFLAGS) clean ); \
136: done
137:
138: tags::
139: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
140: for i in $(SUBDIRS) ;\
141: do \
142: (cd $$i ; echo "tagging $$i"; \
143: TAGS='$(TAGS)' $(MAKE) $(MFLAGS) tags ); \
144: done
145:
146: Makefiles::
147: @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
148: for i in $(SUBDIRS) ;\
149: do \
150: echo "Making Makefiles in $$i..."; \
151: case "$$i" in \
152: ./?*/?*/?*) newtop=../../../ sub=subsubsub;; \
153: ./?*/?*) newtop=../../ sub=subsub;; \
154: ./?*) newtop=../ sub=sub;; \
155: */?*/?*) newtop=../../../ sub=subsubsub;; \
156: */?*) newtop=../../ sub=subsub;; \
157: *) newtop=../ sub=sub;; \
158: esac; \
159: NEWTOP=$$newtop MAKEFILE_SUBDIR=$$i \
160: $(MAKE) $${sub}dirMakefiles; \
161: done
162:
163: subdirMakefiles:
164: rm -f $(MAKEFILE_SUBDIR)/Makefile.bak
165: -mv $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak
166: cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(TOP)/..; \
167: $(MAKE) $(MFLAGS) Makefiles
168:
169: subsubdirMakefiles:
170: rm -f $(MAKEFILE_SUBDIR)/Makefile.bak
171: -mv $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak
172: cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(TOP)/../..; \
173: $(MAKE) $(MFLAGS) Makefiles
174:
175: subsubsubdirMakefiles:
176: rm -f $(MAKEFILE_SUBDIR)/Makefile.bak
177: -mv $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak
178: cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(TOP)/../../..; \
179: $(MAKE) $(MFLAGS) Makefiles
180:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.