# ldnssec-utils # # Written in 2021 by Lucas # # To the extent possible under law, the author(s) have dedicated all # copyright and related and neighboring rights to this software to the # public domain worldwide. This software is distributed without any # warranty. # # You should have received a copy of the CC0 Public Domain Dedication # along with this software. If not, see # . .POSIX: .SUFFIXES: .SUFFIXES: .o .c P = ldnssec-utils V = 0.0 MANPREFIX = ${PREFIX}/man LIBHDR = util.h LIBOBJ = util.o BIN = ldnssec-keygen ldnssec-sign-dnskey MAN1 = ldnssec-keygen.1 OBJ = ${BIN:=.o} ${LIBOBJ} SRC = ${OBJ:.o=.c} DIST = COPYING Makefile ${LIBHDR} ${SRC} LDNS_INCS = -I/usr/local/include LDNS_LIBS = -L/usr/local/lib -lldns .o: ${CC} ${LDFLAGS} -o $@ $@.o ${LIBOBJ} ${LDNS_LIBS} .c.o: ${CC} ${CFLAGS} ${LDNS_INCS} -c $< all: ${BIN} clean: rm -f ${BIN} ${OBJ} ${P}-${V}.tgz dist: clean pax -ws ',^,${P}-${V}/,' ${DIST} | gzip >${P}-${V}.tgz install: all mkdir -p ${PREFIX}/bin cp -f ${BIN} ${PREFIX}/bin cd ${PREFIX}/bin && chmod 555 ${BIN} mkdir -p ${MANPREFIX}/man1 cp -f ${MAN1} ${MANPREFIX}/man1 cd ${MANPREFIX}/man1 && chmod 444 ${MAN1} uninstall: cd ${PREFIX}/bin && rm -f ${BIN} cd ${MANPREFIX}/man1 && rm -f ${MAN1} util.o: util.h ldnssec-keygen: ldnssec-keygen.o ${LIBOBJ} ldnssec-sign-dnskey: ldnssec-sign-dnskey.o ${LIBOBJ}