mirror of
https://github.com/reactos/ccache.git
synced 2024-12-13 14:16:44 +00:00
df18a2a815
more unsupported options
48 lines
926 B
Makefile
48 lines
926 B
Makefile
srcdir=@srcdir@
|
|
VPATH=@srcdir@
|
|
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
bindir=@bindir@
|
|
mandir=@mandir@
|
|
INSTALLCMD=@INSTALL@
|
|
|
|
CC=@CC@
|
|
CFLAGS=@CFLAGS@ -I.
|
|
|
|
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
|
|
|
|
docs: ccache.1 web/ccache-man.html
|
|
|
|
ccache: $(OBJS) $(HEADERS)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS)
|
|
|
|
ccache.1: ccache.yo
|
|
yodl2man -o ccache.1 ccache.yo
|
|
|
|
web/ccache-man.html: ccache.yo
|
|
mkdir -p man
|
|
yodl2html -o web/ccache-man.html ccache.yo
|
|
|
|
install:
|
|
${INSTALLCMD} -d $(DESTDIR)${bindir}
|
|
${INSTALLCMD} -m 755 ccache $(DESTDIR)${bindir}
|
|
${INSTALLCMD} -d $(DESTDIR)${mandir}/man1/
|
|
${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
|
|
|
|
clean:
|
|
/bin/rm -f $(OBJS) *~ ccache
|
|
|
|
test: test.sh
|
|
./test.sh
|
|
|
|
check: test.sh
|
|
./test.sh
|
|
|
|
distclean: clean
|
|
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status
|