(file) Return to Imakefile CVS log (file) (dir) Up to [XFree86 CVS] / xc

  1 dawes 3.11 XCOMM $XConsortium: Imakefile /main/137 1996/10/08 07:38:14 swick $
  2            XCOMM $XFree86: xc/Imakefile,v 3.10 1996/03/04 04:19:15 dawes Exp $
  3 dawes 1.1  #define IHaveSubdirs
  4            #define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
  5            
  6 dawes 3.11 RELEASE = "Release 6.3"
  7 dawes 1.1  #ifndef OSName
  8            #define OSName Unknown Operating System!
  9            #endif
 10            
 11 dawes 3.0  #if !BuildServersOnly
 12 dawes 1.1  #if BuildFonts
 13                    FONTSDIR = fonts
 14            #endif
 15 dawes 3.6  #ifndef Win32Architecture
 16 dawes 1.1          DOCSDIR = doc
 17 dawes 3.5          NLSSUBDIR = nls
 18 dawes 3.0  #endif
 19 dawes 1.1  #endif
 20            
 21 dawes 3.7          SUBDIRS = include config lib $(NLSSUBDIR) \
 22                              programs $(FONTSDIR) $(DOCSDIR)
 23 dawes 1.1    LNINSTALLDIRS = lib
 24            
 25 dawes 3.3  #if HasParallelMake
 26            #ifdef ParallelDefines
 27                    PARALLELOPTS = ParallelDefines
 28            #endif
 29            #endif
 30            
 31 dawes 1.1  MakeSubdirs($(SUBDIRS))
 32            
 33            MakeLintSubdirs($(LNINSTALLDIRS),install.ln,install.ln)
 34            
 35            MakeLintSubdirs($(LNINSTALLDIRS),external.ln,lintlib)
 36            
 37            DependSubdirs($(SUBDIRS))
 38            
 39 dawes 3.6  #define IHaveSpecialMakefileTarget
 40            
 41 dawes 1.1  #ifndef Win32Architecture
 42 dawes 3.1  #ifndef OS2Architecture
 43 dawes 1.1  VerifyOS::
 44            	@echo ""
 45            	@echo Building on OSName.
 46            	@echo ""
 47            
 48            includes::
 49            	MakeDir($(BUILDINCDIR))
 50 dawes 3.11 	MakeDir($(BUILDBINDIR))
 51 dawes 1.1  
 52            XCOMM
 53            XCOMM Watch out!!!  Make sure you do make includes after removing X11....
 54            XCOMM
 55            clean::
 56            	$(RM) -r $(BUILDINCDIR)
 57            	$(RM) -r $(BUILDLIBDIR)
 58 dawes 3.11 	$(RM) -r $(BUILDBINDIR)
 59 dawes 1.1  
 60 dawes 3.6        MAKE_OPTS = -f xmakefile
 61 dawes 3.10 
 62            World::
 63            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) $(PARALLELOPTS) all
 64 dawes 1.1  
 65            Everything::
 66            	@echo ""
 67            	@echo Rebuilding $(RELEASE) of the X Window System.
 68            	@echo ""
 69            	@date
 70            	@echo ""
 71 dawes 3.6  	cd $(IMAKESRC) && if [ -f Makefile ]; then \
 72            	    $(MAKE) $(MFLAGS) BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"; \
 73            	else \
 74            	    $(MAKE) $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"; \
 75            	fi
 76            	-$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak
 77            	$(MAKE) $(MFLAGS) xmakefile
 78            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
 79            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
 80            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
 81            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
 82 dawes 1.1  	@echo ""
 83            	@date
 84            	@echo ""
 85            	@echo Rebuild of $(RELEASE) of the X Window System complete.
 86            	@echo ""
 87            
 88            XCOMM clean out link tree looking for stuff that should get checked in
 89            dangerous_strip_clean::
 90 dawes 3.6  	$(MAKE) -k clean
 91 dawes 1.1  	find . -type l -exec rm {} \;
 92            	find . \( \! \( -type d -o -name Makefile \) \) -print
 93            
 94 dawes 3.1  #else /* OS2Architecture */
 95            VerifyOS::
 96            	@echo :
 97            	@echo Building on OSName.
 98            	@echo :
 99            
100            includes::
101            	MakeDir($(subst /,\,$(BUILDINCDIR)))
102            
103            XCOMM
104            XCOMM Watch out!!!  Make sure you do make includes after removing X11....
105            XCOMM
106            clean::
107            	$(RM) -r $(BUILDINCDIR)
108            	$(RM) -r $(BUILDLIBDIR)
109            
110            Everything::
111            	@echo :
112            	@echo Building $(RELEASE) of the X Window System on OS/2
113            	@echo :
114            	@echo :
115 dawes 3.1  	\indir $(IMAKESRC) $(MAKE) $(MFLAGS) SHELL= -f Makefile.ini BOOTSTRAPCFLAGS=-Zexe
116            	if exist Makefile.bak del Makefile.bak
117            	if exist MAkefile ren Makefile Makefile.bak
118            	$(MAKE) $(MFLAGS) -f Makefile.bak Makefile
119            	$(MAKE) $(MFLAGS) SHELL= VerifyOS
120            	$(MAKE) $(MFLAGS) SHELL= Makefiles
121            	$(MAKE) $(MFLAGS) SHELL= clean
122            	$(MAKE) $(MFLAGS) SHELL= includes
123            	$(MAKE) $(MFLAGS) SHELL= depend
124            	$(MAKE) $(MFLAGS)
125            	@echo :
126            	@echo :
127 dawes 3.6  	@echo Rebuild of $(RELEASE) of the X Window System complete.
128 dawes 3.1  	@echo :
129            
130            #ifdef ProjectRoot
131            install::
132            	MakeDir($(subst /,\,$(PROJECTROOT)))
133            #endif
134            
135            install::
136            	MakeDir($(subst /,\,$(INCROOT)))
137            	MakeDir($(subst /,\,$(USRLIBDIR)))
138            	MakeDir($(subst /,\,$(LIBDIR)))
139            
140            #endif
141 dawes 3.6  #else /* not Win32Architecture else */
142 dawes 1.1  VerifyOS::
143            	@echo :
144            	@echo Building on OSName.
145            	@echo :
146            
147            includes::
148            	MakeDir($(BUILDINCDIR:/=\))
149            
150            XCOMM
151            XCOMM Watch out!!!  Make sure you do make includes after removing X11....
152            XCOMM
153            clean::
154            	RmTreeCmd $(BUILDINCDIR:/=\)
155            	RmTreeCmd $(BUILDLIBDIR:/=\)
156            
157            Everything::
158            	@echo :
159            	@echo Rebuilding $(RELEASE) of the X Window System.
160            	@echo :
161            	@echo :
162            	cd $(IMAKESRC)
163 dawes 1.1  	$(MAKE) $(MFLAGS) -f Makefile.ini imake.exe
164            	cd ..\..
165 dawes 3.6  	RMoveToBakFile(xmakefile)
166            	$(MAKE) $(MFLAGS) xmakefile
167            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
168            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
169            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
170            	$(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
171 dawes 1.1  	@echo :
172            	@echo :
173            	@echo Rebuild of $(RELEASE) of the X Window System complete.
174            	@echo :
175            
176            #ifdef ProjectRoot
177            install::
178            	MakeDir($(PROJECTROOT:/=\))
179            #endif
180            
181            install::
182            	MakeDir($(INCROOT:/=\))
183            	MakeDir($(USRLIBDIR:/=\))
184            	MakeDir($(LIBDIR:/=\))
185            
186 dawes 3.6  #endif /* not Win32Architecture else */
187            
188 dawes 3.8  XCOMM special target to determine if the xmakefile exists. 
189            XCOMM Works on both Unix and NMAKE.EXE
190            xmakefile-exists::
191            
192            
193 dawes 3.6  #ifndef MakeManKeywords
194            #define MakeManKeywords YES	/* install.man rebuilds "man -k" database? */
195 dawes 1.1  #endif
196 dawes 3.6  
197            #undef BootstrapCleanSubdirs
198 dawes 3.8  #define BootstrapCleanSubdirs BOOTSTRAPSUBDIRS="$(BOOTSTRAPSUBDIRS)"
199 dawes 3.6  BOOTSTRAPSUBDIRS = imake makedepend

Powered by
ViewCVS 0.9.2