From ec04bfbd248c58ccda8cda3df785b86252efb707 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 May 2020 20:01:51 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1a3ac27 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +all: sctrace + +sctrace: sctrace.c + $(CC) -o $@ $@.c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) + +install: sctrace + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + cp -- sctrace "$(DESTDIR)$(PREFIX)/bin" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/sctrace" + +clean: + -rm -f -- *.o sctrace + +.PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2