initial oshash commit
This commit is contained in:
commit
40726e1879
4 changed files with 165 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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}
|
||||
|
||||
uninstall:
|
||||
@rm -f ${BINDIR}/${PROG}
|
||||
|
||||
.PHONY: all install uninstall
|
||||
Loading…
Add table
Add a link
Reference in a new issue