oshash/Makefile

31 lines
569 B
Makefile
Raw Permalink Normal View History

2011-09-25 16:31:23 +00:00
PROG = oshash
SRC = src/oshash.c
PREFIX ?= /usr/local
BINDIR ?= ${DESTDIR}${PREFIX}/bin
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
CC ?= gcc
CFLAGS += -Wall -ffast-math -fsigned-char
CFLAGS += -I. -Isrc
INSTALL = install
all: ${PROG}
${PROG}: ${SRC}
${CC} ${CFLAGS} -o ${PROG} $< ${LDFLAGS}
clean:
-@rm -f ${PROG} *~ core *.core src/*.o
install: ${PROG}
${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR}
2012-08-12 17:22:37 +00:00
${INSTALL} -c -m 444 -o root -g root oshash.1 ${MAN1DIR}
2011-09-25 16:31:23 +00:00
uninstall:
2012-08-12 17:22:37 +00:00
@rm -f ${BINDIR}/${PROG} ${MAN1DIR}/oshash.1
2011-09-25 16:31:23 +00:00
.PHONY: all install uninstall