summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f88526b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+CC ?= gcc
+CFLAGS ?= -O2 -pipe
+LDFLAGS ?= -s -static
+DESTDIR =
+
+.PHONY: all
+
+all: set_time
+
+set_time:
+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) set_time.c
+
+install: set_time
+ install -D set_time $(DESTDIR)/sbin/set_time
+
+clean:
+ rm -f set_time