summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Meskes <meskes@debian.org>2008-08-27 13:45:17 +0200
committerMichael Meskes <meskes@debian.org>2008-08-27 13:45:17 +0200
commitf06a98f0b468601fc1ab929b06a7962cca8614ea (patch)
treed1e64a0785f80b753f11d81a77f9cb27f86dcf0a /Makefile
Imported Upstream version 0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8d8c490
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+VERSION=0.1
+
+DEBUG=-g #-fprofile-arcs -ftest-coverage # -pg -g
+CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG)
+LDFLAGS+=-lacpi $(DEBUG)
+
+OBJS=error.o at.o sched.o emit.o
+
+all: acpitail
+
+acpitail: $(OBJS)
+ $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o acpitail
+
+install: acpitail
+ cp acpitail /usr/local/sbin
+
+clean:
+ rm -f $(OBJS) acpitail core *.da *.gcov *.bb*
+
+package: clean
+ mkdir acpitail-$(VERSION)
+ cp *.c *.h Makefile readme.txt license.txt acpitail-$(VERSION)
+ tar czf acpitail-$(VERSION).tgz acpitail-$(VERSION)
+ rm -rf acpitail-$(VERSION)