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





                      








                    



























                                                                          
.POSIX:

CONFIGFILE = config.mk
include $(CONFIGFILE)

OBJ =\
	deadshred.o\
	io.o\
	fmt.o\
	text.o\
	avg.o\
	rnd.o

HDR =\
	common.h

all: deadshred
$(OBJ): $(HDR)

.c.o:
	$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)

deadshred: $(OBJ)
	$(CC) -o $@ $(OBJ) $(LDFLAGS)

install: deadshred
	mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
	mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
	cp -- deadshred "$(DESTDIR)$(PREFIX)/bin/"
	cp -- deadshred.1 "$(DESTDIR)$(MANPREFIX)/man1/"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/bin/deadshred"
	-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/deadshred.1"

clean:
	-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda
	-rm -f -- deadshred

.SUFFIXES:
.SUFFIXES: .o .c

.PHONY: all install uninstall clean