From 7adff40839c7b840a5f71a32d95873ea89453a1e Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 8 Dec 2020 04:17:32 +0300 Subject: Makefile changes, usage message changes, README updates --- Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 479dbe7..15bdbd0 100644 --- a/Makefile +++ b/Makefile @@ -6,15 +6,13 @@ LDFLAGS = INSTALL = /usr/bin/env install PREFIX = /usr/local -all: voidnsrun voidnsundo - test: testserver testclient -voidnsrun: voidnsrun.o utils.o - $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) +run: voidnsrun.o utils.o + $(CC) $(CFLAGS) -o voidnsrun $^ $(LDFLAGS) -voidnsundo: voidnsundo.o utils.o - $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) +undo: voidnsundo.o utils.o + $(CC) $(CFLAGS) -o voidnsundo $^ $(LDFLAGS) testserver: test/testserver.o utils.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) @@ -22,9 +20,13 @@ testserver: test/testserver.o utils.o testclient: test/testclient.o utils.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -install: voidnsrun voidnsundo - $(INSTALL) voidnsrun voidnsundo $(PREFIX)/bin - chmod u+s $(PREFIX)/bin/voidnsrun $(PREFIX)/bin/voidnsundo +install-run: run + $(INSTALL) voidnsrun $(PREFIX)/bin + chmod u+s $(PREFIX)/bin/voidnsrun + +install-undo: undo + $(INSTALL) voidnsundo $(PREFIX)/bin + chmod u+s $(PREFIX)/bin/voidnsundo clean: rm -f *.o test/*.o voidnsrun voidnsundo testserver testclient @@ -32,4 +34,4 @@ clean: %.o: %.c $(CC) $(CFLAGS) -c $^ -I. -o $@ -.PHONY: all install clean distclean \ No newline at end of file +.PHONY: run undo install-run install-undo clean \ No newline at end of file -- cgit v1.2.3