aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: f24282a4a0c0ebdd1635148681a3b4c701e75d0b (plain) (tree)
1
2
3
4
5
6
7
8






                      
                        












                                                         
.POSIX:

CONFIGFILE = config.mk
include $(CONFIGFILE)

all: sctrace

sctrace: sctrace.c arg.h
	$(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