Makefile (329B)
1 PREFIX ?= /usr/local 2 BINDIR ?= /bin 3 4 CFLAGS=-I . -g 5 6 all: typetest 7 8 clean: 9 rm -f typetest 10 11 typetest: typetest.c 12 $(CC) -o $@ $< $(CFLAGS) $(LDLIBS) 13 14 install: typetest 15 install -m755 typetest -T "$(DESTDIR)$(PREFIX)$(BINDIR)/typtest" 16 17 uninstall: 18 rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/typtest" 19 20 .PHONY: all clean install uninstall