summaryrefslogtreecommitdiff
path: root/gnu/egcs/libiberty/Makefile.bsd-wrapper
blob: 3f4bbaa266ee19b55e2eb9c3dbd98a5aeab51473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#	$OpenBSD: Makefile.bsd-wrapper,v 1.2 1999/05/28 16:17:34 espie Exp $

LIB=		iberty
CPPFLAGS+=	-I$(.CURDIR) -I$(.CURDIR)/../include -I$(.OBJDIR)

# XXX -- GNUism
# As we need to fill variables with contents of dynamically created files
# we must first see to that they are really generated.  This is a hack that
# ensures this.  The echo at the end is because make doesn't like command
# substitutions to not generate output.
.ifmake !obj && !clean && !cleandir
PREREQ!=	test ! -f $(.OBJDIR)/needed-list && \
			(cd $(.CURDIR); \
			 $(MAKE) -f Makefile.bsd-wrapper1 needed-list); \
		echo 'Prerequistes made'
HOST_FILES!=	cat $(.OBJDIR)/needed-list
.endif

SRCS=		argv.c choose-temp.c concat.c cplus-dem.c \
		fdmatch.c getopt.c getopt1.c getruntime.c hex.c \
		floatformat.c obstack.c pexecute.c spaces.c splay-tree.c \
		strerror.c strsignal.c xatexit.c xexit.c xmalloc.c \
		xstrerror.c \
		$(HOST_FILES)

#		choose-temp.c fnmatch.c objalloc.c pexecute.c xstrdup.c \
#		basename.c vasprintf.c 

# XXX -- These files are generated during the PREREQ variable assignment.
CLEANFILES+=	config.h config.status needed-list 

# XXX -- Why are these not removed by the generated Makefile?
CLEANFILES+=	insque.o  insque.po insque.so 

# and more
CLEANFILES+=Makefile config.cache config.log stamp-h xhost-mkfrag testsuite/Makefile

.include <bsd.lib.mk>