diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..260db1a --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +TARGET=sntp +SRC=sntp.c log.c util.c + +DISTFILES=$(SRC) Makefile ntp.h util.h log.h + +VERSION=0.8 +P=$(TARGET)-$(VERSION) + +CFLAGS ?= -Wall -Werror -DDEBUG + +$(TARGET): $(SRC) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + +clean: + rm -f $(TARGET) + +tar: $(P).tar.gz + +$(P).tar.gz: $(DISTFILES) + rm -rf $(P) + mkdir -p $(P) + cp $(DISTFILES) $(P) + tar -czf $@ $(P) + rm -rf $(P) + |