From e9f603063cdd2d3c7c7f0801078e22158e6bad1d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 16:13:12 +0200 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ae36177..10de910 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,13 @@ CONFIGFILE = config.mk include $(CONFIGFILE) + all: asroot asroot.o: asroot.c arg.h +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + asroot: asroot.o $(CC) -o $@ asroot.o $(LDFLAGS) @@ -24,6 +28,9 @@ uninstall: -rm -f -- "$(DESTDIR)$(MANPREFIX)/man8/asroot.8" clean: - -rm -f -- asroot.o asroot + -rm -f -- asroot *.o *.su + +.SUFFIXES: +.SUFFIXES: .o .c .PHONY: all install post-install uninstall clean -- cgit v1.2.3-70-g09d2