From 712f56fe3369c59d32b9000830b4ed7b25ed24b5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 30 May 2020 17:34:29 +0200 Subject: Add support for tracing fork children MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1d032bc..3631779 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,27 @@ CONFIGFILE = config.mk include $(CONFIGFILE) +OBJ =\ + consts.o\ + memory.o\ + print.o\ + process.o\ + sctrace.o\ + util.o + +HDR =\ + arg.h\ + common.h\ + list-errnos.h + all: sctrace +$(OBJ): $(@:.o=.c) $(HDR) + +sctrace: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) -sctrace: sctrace.c arg.h list-errnos.h - $(CC) -o $@ $@.c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) +.c.o: + $(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) list-errnos.h: printf '#define LIST_ERRNOS(_)\\\n\t' > $@ @@ -25,4 +42,7 @@ uninstall: clean: -rm -f -- *.o list-errnos.h sctrace +.SUFFIXES: +.SUFFIXES: .c .o + .PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2