diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
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) |