ccache/Makefile.in

92 lines
1.9 KiB
Makefile
Raw Normal View History

2009-12-13 13:40:33 +00:00
srcdir = @srcdir@
VPATH = @srcdir@
2009-12-13 13:40:33 +00:00
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
datarootdir = @datarootdir@
2009-12-13 13:40:33 +00:00
installcmd = @INSTALL@
2002-03-31 09:02:21 +00:00
2009-12-13 13:40:33 +00:00
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@ -I.
2009-12-13 13:40:33 +00:00
LDFLAGS = @LDFLAGS@
EXEEXT = @EXEEXT@
2002-03-31 09:02:21 +00:00
ASCIIDOC = asciidoc
XSLTPROC = xsltproc
MANPAGE_XSL = /etc/asciidoc/docbook-xsl/manpage.xsl
libs = @LIBS@ -lm
sources = \
2009-12-13 13:40:33 +00:00
ccache.c mdfour.c hash.c execute.c util.c args.c stats.c \
cleanup.c snprintf.c unify.c manifest.c hashtable.c hashtable_itr.c \
murmurhashneutral2.c hashutil.c getopt_long.c
all_sources = $(sources) @extra_sources@
2009-12-13 13:40:33 +00:00
headers = \
ccache.h hashtable.h hashtable_itr.h hashtable_private.h hashutil.h \
manifest.h mdfour.h murmurhashneutral2.h getopt_long.h
objs = $(all_sources:.c=.o)
2002-03-31 09:02:21 +00:00
files_to_clean = $(objs) *~ ccache$(EXEEXT) ccache.1
2009-12-29 23:25:09 +00:00
.PHONY: all
all: ccache$(EXEEXT)
2002-04-01 00:23:31 +00:00
2009-12-29 23:25:09 +00:00
.PHONY: docs
2010-04-24 08:31:10 +00:00
docs: ccache.1 ccache.html NEWS.html
2002-03-31 09:02:21 +00:00
ccache$(EXEEXT): $(objs)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(objs) $(libs)
2002-03-31 09:02:21 +00:00
ccache.xml: ccache.txt
$(ASCIIDOC) -d manpage -b docbook $<
ccache.html: ccache.txt
2010-04-22 20:55:26 +00:00
$(ASCIIDOC) -a toc -b xhtml11 $<
ccache.1: ccache.xml
$(XSLTPROC) --nonet $(MANPAGE_XSL) $<
2002-04-01 00:23:31 +00:00
2010-04-24 08:31:10 +00:00
NEWS.html: NEWS.txt
$(ASCIIDOC) -a toc -b xhtml11 $<
2009-12-29 23:25:09 +00:00
.PHONY: install
2009-12-13 13:40:33 +00:00
install: all
$(installcmd) -d $(DESTDIR)$(bindir)
$(installcmd) -s -m 755 ccache$(EXEEXT) $(DESTDIR)$(bindir)
$(installcmd) -d $(DESTDIR)$(mandir)/man1
-$(installcmd) -m 644 $(srcdir)/ccache.1 $(DESTDIR)$(mandir)/man1/
2009-12-13 13:40:33 +00:00
2009-12-29 23:25:09 +00:00
.PHONY: clean
2002-03-31 09:02:21 +00:00
clean:
rm -f $(files_to_clean)
2002-03-31 12:38:07 +00:00
2010-03-02 06:04:36 +00:00
.PHONY: perf
perf:
CXX='$(CXX)' $(srcdir)/perf.sh
2010-03-02 06:04:36 +00:00
2009-12-29 23:25:09 +00:00
.PHONY: test
test:
CC='$(CC)' $(srcdir)/test.sh
2009-12-29 23:25:09 +00:00
.PHONY: check
check: test
2009-12-29 23:25:09 +00:00
.PHONY: distclean
2002-04-03 04:10:55 +00:00
distclean: clean
rm -rf Makefile dev.mk config.h config.log config.status .deps
2009-12-29 23:25:09 +00:00
.PHONY: installcheck
2009-11-07 08:09:39 +00:00
installcheck:
CCACHE=$(bindir)/ccache $(srcdir)/test.sh
2009-11-01 18:49:59 +00:00
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
@include_dev_mk@