VirtualBox

source: kBuild/trunk/src/makedep/Imakefile@ 199

Last change on this file since 199 was 164, checked in by bird, 20 years ago

Initial revision

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:41:50 cpqbld Exp $
2XCOMM
3XCOMM
4XCOMM
5XCOMM
6XCOMM $XFree86: xc/config/makedepend/Imakefile,v 3.12tsi Exp $
7
8 SRCS = include.c main.c parse.c pr.c cppsetup.c ifparser.c
9 OBJS = include.o main.o parse.o pr.o cppsetup.o ifparser.o
10
11XCOMM Some compilers generate fatal errors if an -L directory does
12XCOMM not exist. Since BUILDLIBDIR may not exist yet suppress its use.
13 LDPRELIB =
14 LDPRELIBS =
15
16#if HasGcc && !defined(PreIncDir)
17#ifdef CrossCompileDir
18#else
19#define PreIncDir /usr/local/lib/gcc-include
20#endif
21#endif
22#ifdef PreIncDir
23PREINCDIR = PreIncDir
24PREINC_DEFINES = -DPREINCDIR=\"$(PREINCDIR)\"
25#endif
26#ifndef StdIncDir
27#ifdef CrossCompileDir
28#define StdIncDir Concat(CrossCompileDir,/../include)
29#else
30#define StdIncDir /usr/include
31#endif
32#endif
33STDINCDIR = StdIncDir
34STDINC_DEFINES = -DINCLUDEDIR=\"$(STDINCDIR)\"
35#ifdef PostIncDir
36POSTINCDIR = PostIncDir
37POSTINC_DEFINES = -DPOSTINCDIR=\"$(POSTINCDIR)\"
38#endif
39#ifdef ExtraIncDir
40EXTRAINCDIR = ExtraIncDir
41EXTRAINC_DEFINES = -DEXTRAINCDIR=\"$(EXTRAINCDIR)\"
42#endif
43INC_DEFINES = $(PREINC_DEFINES) $(STDINC_DEFINES) $(POSTINC_DEFINES) \
44 $(EXTRAINC_DEFINES)
45OSUF = Concat(.,Osuf)
46OSUF_DEFINES = -DOBJSUFFIX=\"$(OSUF)\"
47MAIN_DEFINES = $(INC_DEFINES) $(SIGNAL_DEFINES) $(OSUF_DEFINES)
48INCLUDES = -I$(IMAKESRC) -I$(TOP)/include $(TOP_X_INCLUDES)/X11
49
50 DEPLIBS =
51
52#if defined(MacIIArchitecture) || defined(SequentArchitecture) || defined(i386ScoArchitecture)
53 XBSDLIB = /**/
54#endif
55
56AllTarget(HostProgramTargetName(makedepend))
57
58makedependonly:: HostProgramTargetName(makedepend)
59
60/*
61 * bootstrapping: want to build the real makedepend
62 * only after we've run "make depend" here. That way
63 * the program has the right dependencies for clearmake.
64 * Save the bootstrap original files so they can be winked in
65 * to other views.
66 */
67
68#if HasClearmake
69bootstrap:
70 test -h X11 || $(LN) TOPDIR/include X11
71 $(MAKE) -f Makefile.proto TOP_INCLUDES=-I. makedepend
72
73depend::
74 $(MAKE) -f Makefile.proto depend
75 test -d bootstrap || mkdir bootstrap
76 $(MV) *.o makedepend bootstrap
77 $(MAKE) -f Makefile.proto makedepend
78
79clean::
80 $(RM) -r bootstrap
81 $(RM) X11
82#else
83bootstrap:
84#endif /* HasClearmake */
85
86clean::
87 $(RM) Makefile.proto
88
89#undef InstallManPage
90#define InstallManPage(file,dest) /* as nothing */
91#if CrossCompiling
92ComplexHostProgramTarget(makedepend)
93#else
94ComplexProgramTarget(makedepend)
95#endif
96
97SpecialCObjectRule(main,$(ICONFIGFILES),$(MAIN_DEFINES))
98
99InstallManPageLong(mkdepend,$(MANDIR),makedepend)
100
101InstallDriverSDKNamedProg(makedepend,makedepend,$(DRIVERSDKDIR)/config/makedepend)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette