2015-06-04 19:07:06 +00:00
|
|
|
LDFLAGS+= -lbsd
|
|
|
|
|
|
|
|
strfile : strfile.c
|
2015-06-04 19:40:50 +00:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
2015-06-04 19:07:06 +00:00
|
|
|
|
|
|
|
install :
|
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
install -m0755 strfile $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8
|
|
|
|
install -m0644 strfile.8 $(DESTDIR)$(PREFIX)/share/man/man8/
|
|
|
|
|
|
|
|
clean :
|
|
|
|
$(RM) strfile
|