Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / pcc / dist / pcc-libs / libpcc / Makefile.in
blobe9caec1a0565e1f29a8b9cd72e0be6de9ae2a8ef
1 # $Id: Makefile.in,v 1.1.1.2 2009/09/04 00:27:36 gmcgarry Exp $
3 # Makefile.in for libpcc.a
6 VPATH = @srcdir@
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9 top_builddir = @top_builddir@
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 libdir = @libdir@
14 CC = @CC@
15 TARGMACH = @targmach@
16 TARGOS = @targos@
17 TARGET = @target@
18 VERSION = @version@
19 PCCLIBDIR = $(libdir)/pcc/$(TARGET)/$(VERSION)/lib
20 PCCINCDIR = $(libdir)/pcc/$(TARGET)/$(VERSION)/include
22 CPPFLAGS += @CPPFLAGS@ -I$(srcdir) @ENDIAN_FLAG@ -Dos_$(TARGOS)
24 LIBS = @LIBS@
25 AR = @AR@
26 RANLIB = @RANLIB@
27 INSTALL = @INSTALL@
29 HEADERS += float.h stdarg.h stdbool.h stddef.h \
30 libpcc_float.h libpcc_stdarg.h libpcc_stdbool.h libpcc_stddef.h
32 OBJS += cmpdi2.o divdi3.o fixdfdi.o fixsfdi.o fixunsdfdi.o \
33 fixunssfdi.o floatdidf.o floatdisf.o floatunsdidf.o \
34 moddi3.o muldi3.o negdi2.o qdivrem.o \
35 ucmpdi2.o udivdi3.o umoddi3.o
37 OBJS += ashldi3.o ashrdi3.o lshrdi3.o
39 OBJS += _alloca.o
41 OBJS += ssp.o
43 DEST = libpcc.a
45 all: $(DEST)
47 $(DEST): $(OBJS)
48 $(AR) r $@ $?
49 $(RANLIB) $@
51 .c.o :
52 $(CC) -O $(CPPFLAGS) $(CFLAGS) -c $<
54 install: install-headers install-lib
56 install-headers:
57 test -z "${DESTDIR}$(PCCINCDIR)" || mkdir -p "${DESTDIR}$(PCCINCDIR)"
58 headers='$(HEADERS)'; for i in $$headers; do \
59 $(INSTALL) -m 644 $(srcdir)/include/$$i \
60 ${DESTDIR}$(PCCINCDIR)/$$i; \
61 done
63 install-lib:
64 test -z "${DESTDIR}$(PCCLIBDIR)" || mkdir -p "${DESTDIR}$(PCCLIBDIR)"
65 $(INSTALL) -m 644 $(DEST) ${DESTDIR}$(PCCLIBDIR)
67 clean:
68 /bin/rm -f $(OBJS) $(DEST)
70 distclean:
71 /bin/rm -f Makefile