You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
569 B
Makefile
36 lines
569 B
Makefile
.POSIX:
|
|
.SUFFIXES:
|
|
CC = cc
|
|
CFLAGS = -Wall -O2
|
|
LDFLAGS = -static
|
|
LDLIBS =
|
|
PREFIX = usr/local/
|
|
DESTDIR =
|
|
BIN = cat\
|
|
false\
|
|
sleep\
|
|
true\
|
|
yes\
|
|
echo\
|
|
wc\
|
|
|
|
|
|
all: ${BIN}
|
|
false: true
|
|
ln -s true false
|
|
|
|
install: all
|
|
mkdir -p ${DESTDIR}/${PREFIX}
|
|
install -Dm0755 ${BIN} ${DESTDIR}/${PREFIX}/bin/
|
|
|
|
clean:
|
|
rm ${BIN} *.o
|
|
|
|
check:
|
|
splint +checks +posix-strict-lib +showsummary +forcehints +showscan +showsourceloc +toctou +its4low +its4moderate +its4risky +its4veryrisky +its4mostrisky +bufferoverflow *.c *.h
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
${CC} ${CFLAGS} ${LDFLAGS} -c $<
|
|
|