5
exec_prefix=@exec_prefix@
14
OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
15
cleanup.o snprintf.o unify.o
16
HEADERS = ccache.h mdfour.h
5
exec_prefix = @exec_prefix@
8
datarootdir = @datarootdir@
13
CPPFLAGS = @CPPFLAGS@ -I.
20
ccache.c mdfour.c hash.c execute.c util.c args.c stats.c version.c \
21
cleanup.c snprintf.c unify.c manifest.c hashtable.c hashtable_itr.c \
22
murmurhashneutral2.c hashutil.c getopt_long.c
23
all_sources = $(sources) @extra_sources@
26
ccache.h hashtable.h hashtable_itr.h hashtable_private.h hashutil.h \
27
manifest.h mdfour.h murmurhashneutral2.h getopt_long.h
29
objs = $(all_sources:.c=.o)
31
generated_docs = ccache.1 INSTALL.html manual.html NEWS.html README.html
33
files_to_clean = $(objs) ccache$(EXEEXT) *~
18
36
all: ccache$(EXEEXT)
20
docs: ccache.1 web/ccache-man.html
22
ccache$(EXEEXT): $(OBJS) $(HEADERS)
23
$(CC) $(CFLAGS) -o $@ $(OBJS)
26
-yodl2man -o ccache.1 ccache.yo
28
web/ccache-man.html: ccache.yo
30
yodl2html -o web/ccache-man.html ccache.yo
32
install: ccache$(EXEEXT) ccache.1
33
${INSTALLCMD} -d $(DESTDIR)${bindir}
34
${INSTALLCMD} -m 755 ccache$(EXEEXT) $(DESTDIR)${bindir}
35
${INSTALLCMD} -d $(DESTDIR)${mandir}/man1
36
${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
39
docs: $(generated_docs)
41
ccache$(EXEEXT): $(objs)
42
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(objs) $(libs)
46
$(installcmd) -d $(DESTDIR)$(bindir)
47
$(installcmd) -m 755 ccache$(EXEEXT) $(DESTDIR)$(bindir)
48
$(installcmd) -d $(DESTDIR)$(mandir)/man1
49
-$(installcmd) -m 644 $(srcdir)/ccache.1 $(DESTDIR)$(mandir)/man1/
39
/bin/rm -f $(OBJS) *~ ccache$(EXEEXT)
53
rm -f $(files_to_clean)
57
$(srcdir)/perf.py --ccache ccache$(EXEEXT) $(CC) $(CFLAGS) $(CPPFLAGS) $(srcdir)/ccache.c
61
CC='$(CC)' $(srcdir)/test.sh
47
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status
49
# FIXME: To fix this, test.sh needs to be able to take ccache from the
50
# installed prefix, not from the source dir.
52
@echo "WARNING! This is not really \"installcheck\" yet."
68
rm -rf Makefile dev.mk config.h config.log config.status .deps version.c
72
CCACHE=$(bindir)/ccache $(srcdir)/test.sh
75
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<