Mercurial > hg > xemacs-beta
comparison dynodump/Makefile.in.in @ 157:6b37e6ddd302 r20-3b5
Import from CVS: tag r20-3b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:40:41 +0200 |
parents | 25f70ba0133c |
children | 0132846995bd |
comparison
equal
deleted
inserted
replaced
156:60baf0b43294 | 157:6b37e6ddd302 |
---|---|
37 | 37 |
38 CC=@CC@ | 38 CC=@CC@ |
39 CFLAGS=@CFLAGS@ | 39 CFLAGS=@CFLAGS@ |
40 ARCH=@dynodump_arch@ | 40 ARCH=@dynodump_arch@ |
41 | 41 |
42 /* Where to find the source code. This is set by the configure | |
43 "--srcdir" option. However, the value of ${srcdir} in | |
44 this makefile is not identical to what was specified with --srcdir, | |
45 since the variable here has "/dynodump" added at the end. */ | |
46 srcdir=@srcdir@ | 42 srcdir=@srcdir@ |
47 | 43 |
48 /* ========================= start of cpp stuff ========================= */ | 44 /* ========================= start of cpp stuff ========================= */ |
49 | 45 |
50 #define NO_SHORTNAMES | 46 #define NO_SHORTNAMES |
51 #define THIS_IS_YMAKEFILE | |
52 #define NOT_C_CODE | 47 #define NOT_C_CODE |
53 #include "../src/config.h" | 48 #include "../src/config.h" |
54 | 49 |
55 /* With the traditional VPATH setting, it is not possible to | |
56 simultaneously compile in-place and in another directory. The | |
57 mistaken definition is that *all* dependencies are searched for in | |
58 the VPATH directory, rather than just the dependencies that are not | |
59 themselves targets. Thus, if there is an up-to-date .o file in the | |
60 in-place location, it will not get recompiled in the not-in-place | |
61 location. | |
62 | |
63 The GNU Make "vpath" directive continues this tradition, but at | |
64 least lets you to restrict the classes of files that it applies to. | |
65 This allows us to kludge around the problem. */ | |
66 #ifdef USE_GNU_MAKE | 50 #ifdef USE_GNU_MAKE |
67 vpath %.c @srcdir@ | 51 vpath %.c @srcdir@ |
68 vpath %.h @srcdir@ | 52 vpath %.h @srcdir@ |
69 /* now list files that should NOT be searched in the srcdir. | |
70 This includes any .c or .h that is built from something else | |
71 (e.g. a .in file). */ | |
72 /* none here */ | |
73 #else | 53 #else |
74 VPATH=@srcdir@ | 54 VPATH=@srcdir@ |
75 #endif | 55 #endif |
76 | 56 |
77 #ifdef USE_GCC | 57 #ifdef USE_GCC |
78 # define PIC_ARG -fpic | 58 pic_arg = -fpic |
79 #else | 59 #else |
80 # define PIC_ARG -K pic | 60 pic_arg = -K pic |
81 #endif | 61 #endif |
82 | 62 |
83 INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH) | 63 INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH) |
84 ALL_CFLAGS = ${CFLAGS} PIC_ARG ${INCLUDES} | 64 ALL_CFLAGS = ${CFLAGS} ${pic_arg} ${INCLUDES} |
85 OBJS = _relocate.o dynodump.o syms.o uninit.o | 65 OBJS = _relocate.o dynodump.o syms.o uninit.o |
86 | 66 |
87 .c.o: | 67 .c.o: |
88 $(CC) -c $(ALL_CFLAGS) $< | 68 $(CC) -c $(ALL_CFLAGS) $< |
89 | 69 |
90 /* If we do not need dynodump, then do nothing. */ | |
91 #ifdef DYNODUMP | |
92 all:: dynodump.so | 70 all:: dynodump.so |
93 #else | |
94 all:: | |
95 #endif | |
96 | 71 |
97 dynodump.so: ${srcdir}/_dynodump.h $(OBJS) | 72 dynodump.so: ${srcdir}/_dynodump.h $(OBJS) |
98 PATH=/usr/ccs/bin:/bin:$$PATH ld -o dynodump.so -G $(OBJS) -lelf -lmapmalloc | 73 PATH=/usr/ccs/bin:/bin:$$PATH ld -o dynodump.so -G $(OBJS) -lelf -lmapmalloc |
99 | 74 |
100 _relocate.o: ${srcdir}/$(ARCH)/_relocate.c | 75 _relocate.o: ${srcdir}/$(ARCH)/_relocate.c |