summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-11-28 11:32:14 -0500
committerDave Reisner <d@falconindy.com>2010-11-30 14:18:03 -0500
commit9cde8d2afd5dbedf542d08cfd21dc01fd271b313 (patch)
tree891d76e13a17162a9756b883bd486677d50e1890 /Makefile
downloadexpac-9cde8d2afd5dbedf542d08cfd21dc01fd271b313.tar.xz
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
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
+