1 | XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:41:50 cpqbld Exp $
|
---|
2 | XCOMM
|
---|
3 | XCOMM
|
---|
4 | XCOMM
|
---|
5 | XCOMM
|
---|
6 | XCOMM $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 |
|
---|
11 | XCOMM Some compilers generate fatal errors if an -L directory does
|
---|
12 | XCOMM 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
|
---|
23 | PREINCDIR = PreIncDir
|
---|
24 | PREINC_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
|
---|
33 | STDINCDIR = StdIncDir
|
---|
34 | STDINC_DEFINES = -DINCLUDEDIR=\"$(STDINCDIR)\"
|
---|
35 | #ifdef PostIncDir
|
---|
36 | POSTINCDIR = PostIncDir
|
---|
37 | POSTINC_DEFINES = -DPOSTINCDIR=\"$(POSTINCDIR)\"
|
---|
38 | #endif
|
---|
39 | #ifdef ExtraIncDir
|
---|
40 | EXTRAINCDIR = ExtraIncDir
|
---|
41 | EXTRAINC_DEFINES = -DEXTRAINCDIR=\"$(EXTRAINCDIR)\"
|
---|
42 | #endif
|
---|
43 | INC_DEFINES = $(PREINC_DEFINES) $(STDINC_DEFINES) $(POSTINC_DEFINES) \
|
---|
44 | $(EXTRAINC_DEFINES)
|
---|
45 | OSUF = Concat(.,Osuf)
|
---|
46 | OSUF_DEFINES = -DOBJSUFFIX=\"$(OSUF)\"
|
---|
47 | MAIN_DEFINES = $(INC_DEFINES) $(SIGNAL_DEFINES) $(OSUF_DEFINES)
|
---|
48 | INCLUDES = -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 |
|
---|
56 | AllTarget(HostProgramTargetName(makedepend))
|
---|
57 |
|
---|
58 | makedependonly:: 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
|
---|
69 | bootstrap:
|
---|
70 | test -h X11 || $(LN) TOPDIR/include X11
|
---|
71 | $(MAKE) -f Makefile.proto TOP_INCLUDES=-I. makedepend
|
---|
72 |
|
---|
73 | depend::
|
---|
74 | $(MAKE) -f Makefile.proto depend
|
---|
75 | test -d bootstrap || mkdir bootstrap
|
---|
76 | $(MV) *.o makedepend bootstrap
|
---|
77 | $(MAKE) -f Makefile.proto makedepend
|
---|
78 |
|
---|
79 | clean::
|
---|
80 | $(RM) -r bootstrap
|
---|
81 | $(RM) X11
|
---|
82 | #else
|
---|
83 | bootstrap:
|
---|
84 | #endif /* HasClearmake */
|
---|
85 |
|
---|
86 | clean::
|
---|
87 | $(RM) Makefile.proto
|
---|
88 |
|
---|
89 | #undef InstallManPage
|
---|
90 | #define InstallManPage(file,dest) /* as nothing */
|
---|
91 | #if CrossCompiling
|
---|
92 | ComplexHostProgramTarget(makedepend)
|
---|
93 | #else
|
---|
94 | ComplexProgramTarget(makedepend)
|
---|
95 | #endif
|
---|
96 |
|
---|
97 | SpecialCObjectRule(main,$(ICONFIGFILES),$(MAIN_DEFINES))
|
---|
98 |
|
---|
99 | InstallManPageLong(mkdepend,$(MANDIR),makedepend)
|
---|
100 |
|
---|
101 | InstallDriverSDKNamedProg(makedepend,makedepend,$(DRIVERSDKDIR)/config/makedepend)
|
---|