From 9cde8d2afd5dbedf542d08cfd21dc01fd271b313 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 28 Nov 2010 11:32:14 -0500 Subject: initial commit --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..393e17f --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +include config.mk + +SRC = expac.c +OBJ = ${SRC:.c=.o} + +all: expac + +.c.o: + ${CC} -c ${CFLAGS} $< + +expac: ${OBJ} + ${CC} -o $@ ${OBJ} ${LDFLAGS} + +install: expac + install -D -m755 expac ${DESTDIR}${PREFIX}/bin/expac + +dist: clean + mkdir expac-${VERSION} + cp Makefile expac.c expac-${VERSION} + sed "s/^VERSION = .*/VERSION = ${VERSION}/" config.mk > expac-${VERSION}/config.mk + tar cf - expac-${VERSION} | gzip -9 > expac-${VERSION}.tar.gz + rm -rf expac-${VERSION} + +clean: + $(RM) ${OBJ} expac + -- cgit v1.2.3-70-g09d2