aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 1a3ac276e31ff7ffb4e4f772909b36188a4b8de6 (plain) (tree)




















                                                         
.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