integrate ccache build

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10920 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-11-07 17:03:57 +00:00
commit a65e883912
7 changed files with 42 additions and 14 deletions

View file

@ -7,6 +7,7 @@ exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
INSTALLCMD=@INSTALL@
PACKAGE_NAME=@PACKAGE_NAME@
CC=@CC@
CFLAGS=@CFLAGS@ -I.
@ -17,11 +18,11 @@ OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
cleanup.o snprintf.o unify.o
HEADERS = ccache.h mdfour.h
all: ccache$(EXEEXT)
all: $(PACKAGE_NAME)$(EXEEXT)
docs: ccache.1 web/ccache-man.html
ccache$(EXEEXT): $(OBJS) $(HEADERS)
$(PACKAGE_NAME)$(EXEEXT): $(OBJS) $(HEADERS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
ccache.1: ccache.yo
@ -31,14 +32,14 @@ web/ccache-man.html: ccache.yo
mkdir -p man
yodl2html -o web/ccache-man.html ccache.yo
install: ccache$(EXEEXT) ccache.1
install: $(PACKAGE_NAME)$(EXEEXT) ccache.1
${INSTALLCMD} -d $(DESTDIR)${bindir}
${INSTALLCMD} -m 755 ccache$(EXEEXT) $(DESTDIR)${bindir}
${INSTALLCMD} -m 755 $(PACKAGE_NAME)$(EXEEXT) $(DESTDIR)${bindir}
${INSTALLCMD} -d $(DESTDIR)${mandir}/man1
${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
clean:
/bin/rm -f $(OBJS) *~ ccache$(EXEEXT)
/bin/rm -f $(OBJS) *~ $(PACKAGE_NAME)$(EXEEXT)
test: test.sh
CC='$(CC)' ./test.sh
@ -46,7 +47,7 @@ test: test.sh
check: test
distclean: clean
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status configure config.h
# FIXME: To fix this, test.sh needs to be able to take ccache from the
# installed prefix, not from the source dir.

View file

@ -1,4 +1,6 @@
#define CCACHE_VERSION "2.4"
#include "ccache_swig_config.h"
#define CCACHE_VERSION SWIG_VERSION
#include "config.h"
@ -34,7 +36,7 @@
#define STATUS_FATAL 4
#define STATUS_NOCACHE 5
#define MYNAME "ccache-swig"
#define MYNAME PACKAGE_NAME
#define LIMIT_MULTIPLE 0.8

View file

@ -0,0 +1 @@
#define SWIG_VERSION "@PACKAGE_VERSION@"

View file

@ -1,7 +1,8 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT()
AC_INIT([ccache-swig], [0.0]) # Get version from SWIG in ccache_swig_config.h.in
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR([ccache.h])
AC_MSG_NOTICE([Configuring ccache])