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

File: [XFree86 CVS] / xc / Imakefile (download)
Revision: 3.37, Sun Mar 4 16:33:30 2007 UTC (6 years, 3 months ago) by tsi
Branch: MAIN
CVS Tags: xf-4_8_0-bindist, xf-4_8_0, xf-4_8-branch, xf-4_7_99_9, xf-4_7_99_8, xf-4_7_99_7, xf-4_7_99_6, xf-4_7_99_5, xf-4_7_99_4, xf-4_7_99_31, xf-4_7_99_30, xf-4_7_99_3, xf-4_7_99_29, xf-4_7_99_28, xf-4_7_99_27, xf-4_7_99_26, xf-4_7_99_25, xf-4_7_99_24, xf-4_7_99_23, xf-4_7_99_22, xf-4_7_99_21, xf-4_7_99_20, xf-4_7_99_2, xf-4_7_99_19, xf-4_7_99_18, xf-4_7_99_17, xf-4_7_99_16, xf-4_7_99_15, xf-4_7_99_14, xf-4_7_99_13, xf-4_7_99_12, xf-4_7_99_11, xf-4_7_99_10, xf-4_7_99_1, xf-4_7_0, xf-4_7-branch, xf-4_6_99_29, xf-4_6_99_28, xf-4_6_99_27, xf-4_6_99_26, xf-4_6_99_25, xf-4_6_99_24, xf-4_6_99_23, xf-4_6_99_22, xf-4_6_99_21, xf-4_6_99_20, xf-4_6_99_19, HEAD
Changes since 3.36: +2 -1 lines
Pacify `ld` implementations that warning when an -L directory doesn't exist.

XCOMM $XFree86: xc/Imakefile,v 3.36tsi Exp $

#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"

#ifdef XFree86VersionString
#ifndef XFree86CustomVersion
VERSTRING = " "version XFree86VersionString "("XFree86DateString")"
#else
VERSTRING = " "version XFree86VersionString "("XFree86DateString") ("XFree86CustomVersion")"
#endif
#endif

#ifndef OSName
#define OSName Unknown Operating System!
#endif

#if BuildFonts
        FONTSDIR = fonts
#endif
#ifndef Win32Architecture
#if BuildDocs
        DOCSDIR = doc
#endif
#if BuildNLS
        NLSSUBDIR = nls
#endif
#endif

#if UseMemLeak || UseStackTrace
        MEMLEAKDIR = util/memleak
#endif

        SUBDIRS = include config lib $(NLSSUBDIR) $(MEMLEAKDIR) \
                  programs $(FONTSDIR) $(DOCSDIR)
  LNINSTALLDIRS = lib

#if HasParallelMake
#ifdef ParallelDefines
        TOPPARALLELMFLAGS = TopParallelDefines
#endif
#endif

MakeSubdirs($(SUBDIRS))

MakeLintSubdirs($(LNINSTALLDIRS),install.ln,install.ln)

MakeLintSubdirs($(LNINSTALLDIRS),external.ln,lintlib)

DependSubdirs($(SUBDIRS))

#define IHaveSpecialMakefileTarget

#ifndef Win32Architecture
#ifdef XFree86VersionString
VerifyOS::
	@echo ""
	@echo Building XFree86$(VERSTRING).
#endif
#ifdef OSRelVersion
VerifyOS::
	@echo ""
	@echo Building on OSName "("OSMajorVersion"."OSMinorVersion"."OSTeenyVersion") ("OSRelVersion")"
	@echo ""
#else
VerifyOS::
	@echo ""
	@echo Building on OSName "("OSMajorVersion"."OSMinorVersion"."OSTeenyVersion")"
	@echo ""
#endif
#ifdef LinuxArchitecture
VerifyOS::
	@echo Linux Distribution: LinuxDistName
	@echo libc version: LinuxCLibMajorVersion"."LinuxCLibMinorVersion"."LinuxCLibTeenyVersion
	@echo binutils version: `expr LinuxBinUtilsMajorVersion / 10`.`expr LinuxBinUtilsMajorVersion % 10`
	@echo ""
#endif
#if defined(GccMajorVersion) && defined(GccMinorVersion)
VerifyOS::
	@echo GCC version: GccMajorVersion"."GccMinorVersion
	@echo ""
#endif

#ifdef XFree86Version
#ifndef OS2Architecture
version.def::
	$(RM) $(IRULESRC)/version.def
	$(RM) $(IRULESRC)/date.def
	$(LN) ../../$(XF86SRC)/xf86Version.h $(IRULESRC)/version.def
	$(LN) ../../$(XF86SRC)/xf86Date.h $(IRULESRC)/date.def
#else /*OS2Architecture*/
version.def::
	$(RM) $(IRULESRC)/version.def
	$(RM) $(IRULESRC)/date.def
	$(CP) $(XF86SRC)/xf86Version.h $(IRULESRC)/version.def
	$(CP) $(XF86SRC)/xf86Date.h $(IRULESRC)/date.def
#endif
#else
version.def::
#endif

includes::
	MakeDir($(BUILDINCDIR))
	MakeDir($(BUILDLIBDIR))
	MakeDir($(BUILDBINDIR))

XCOMM
XCOMM Watch out!!!  Make sure you do make includes after removing X11....
XCOMM
clean::
	$(RM) -r $(BUILDINCDIR)
	$(RM) -r $(BUILDLIBDIR)
	$(RM) -r $(BUILDBINDIR)

      MAKE_OPTS = -f xmakefile

World::
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) $(TOPPARALLELMFLAGS) all

Everything::
	@echo ""
	@echo Rebuilding XFree86$(VERSTRING).
	@echo ""
	@date
	@echo ""
	cd $(IMAKESRC) && if [ -f Makefile ]; then \
	    $(MAKE) $(PASSMFLAGS) BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"; \
	else \
	    $(MAKE) $(PASSMFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"; \
	fi
	-$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak
	$(MAKE) $(PASSMFLAGS) xmakefile
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) Makefiles
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) includes
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) depend
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
	@echo ""
	@date
	@echo ""
	@echo Rebuild of XFree86$(VERSTRING) complete.
	@echo ""

XCOMM clean out link tree looking for stuff that should get checked in
dangerous_strip_clean::
	$(MAKE) -k distclean
	find . -type l -exec rm {} \;
	find . \( \! -type d \) -print

#else /* not Win32Architecture else */
VerifyOS::
	@echo :
	@echo Building on OSName.
	@echo :

includes::
	MakeDir($(BUILDINCDIR:/=\))

XCOMM
XCOMM Watch out!!!  Make sure you do make includes after removing X11....
XCOMM
clean::
	RmTreeCmd $(BUILDINCDIR:/=\)
	RmTreeCmd $(BUILDLIBDIR:/=\)

Everything::
	@echo :
	@echo Rebuilding XFree86$(VERSTRING).
	@echo :
	@echo :
	cd $(IMAKESRC)
	$(MAKE) $(PASSMFLAGS) -f Makefile.ini imake.exe
	cd ..\..
	RMoveToBakFile(xmakefile)
	$(MAKE) $(PASSMFLAGS) xmakefile
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) Makefiles
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) includes
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) depend
	$(MAKE) $(PASSMFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
	@echo :
	@echo :
	@echo Rebuild of XFree86$(VERSTRING) complete.
	@echo :

#ifdef ProjectRoot
install::
	MakeDir($(PROJECTROOT:/=\))
#endif

install::
	MakeDir($(INCROOT:/=\))
	MakeDir($(USRLIBDIR:/=\))
	MakeDir($(LIBDIR:/=\))

#endif /* not Win32Architecture else */

XCOMM special target to determine if the xmakefile exists. 
XCOMM Works on both Unix and NMAKE.EXE
xmakefile-exists::

#ifndef MakeManKeywords
#define MakeManKeywords YES	/* install.man rebuilds "man -k" database? */
#endif

#ifndef MakeHtmlManIndex
#define MakeHtmlManIndex YES	/* install.man generates HTML man page index */
#endif

#undef BootstrapCleanSubdirs
#define BootstrapCleanSubdirs BOOTSTRAPSUBDIRS="$(BOOTSTRAPSUBDIRS)"
BOOTSTRAPSUBDIRS = imake makedepend

Powered by
ViewCVS 0.9.2