aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1a3ac276e31ff7ffb4e4f772909b36188a4b8de6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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