ccache/Makefile.in

67 lines
1.5 KiB
Makefile
Raw Normal View History

srcdir=@srcdir@
VPATH=@srcdir@
2002-03-31 09:02:21 +00:00
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
datarootdir = @datarootdir@
2002-03-31 09:02:21 +00:00
INSTALLCMD=@INSTALL@
CC=@CC@
CPPFLAGS=@CPPFLAGS@ -MD -MP -I.
CFLAGS=$(CPPFLAGS) @CFLAGS@
LDFLAGS=@LDFLAGS@
EXEEXT=@EXEEXT@
2002-03-31 09:02:21 +00:00
libs = @LIBS@ -lm
sources = \
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
objs = $(sources:.c=.o)
2002-03-31 09:02:21 +00:00
all: ccache$(EXEEXT)
2002-04-01 00:23:31 +00:00
docs: ccache.1 web/ccache-man.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.1: ccache.yo
-yodl2man -o ccache.1 ccache.yo
2002-04-01 00:23:31 +00:00
web/ccache-man.html: ccache.yo
mkdir -p man
2002-03-31 09:02:21 +00:00
yodl2html -o web/ccache-man.html ccache.yo
install: ccache$(EXEEXT) ccache.1
${INSTALLCMD} -d $(DESTDIR)${bindir}
${INSTALLCMD} -m 755 ccache$(EXEEXT) $(DESTDIR)${bindir}
${INSTALLCMD} -d $(DESTDIR)${mandir}/man1
${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
2002-03-31 09:02:21 +00:00
clean:
/bin/rm -f $(objs) *~ ccache$(EXEEXT) *.d
2002-03-31 12:38:07 +00:00
test: test.sh
CC='$(CC)' ./test.sh
check: test
2002-04-03 04:10:55 +00:00
distclean: clean
2002-03-31 12:38:07 +00:00
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status
# FIXME: To fix this, test.sh needs to be able to take ccache from the
# installed prefix, not from the source dir.
2009-11-07 08:09:39 +00:00
installcheck:
@echo "WARNING! This is not really \"installcheck\" yet."
$(MAKE) check
2009-11-01 18:49:59 +00:00
check-syntax:
$(CC) $(filter-out -M%, $(CPPFLAGS)) $(CFLAGS) -S -o /dev/null $(CHK_SOURCES)
-include $(sources:.c=.d)