-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
65 lines (43 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#############################################################################
# Give & Take
#
TOP= .
CC = gcc -Wall -Wextra -Wshadow -std=c99
CFLAGS= -static
LDFLAGS= -L${TOP}/string_m/
LIBS=-l_str_m_v2
INCLUDES = -I${TOP}/ -I${TOP}/string_m/
CLEANFILES = core *.o *.out *.a *.c~ *.rpm
OBJS = give-assist.o
PROGS = give-assist give take
all: ${PROGS}
give-assist: give-assist.o
${CC} -o $@ give-assist.o ${LDFLAGS} ${LIBS}
/usr/bin/strip $@
give: give.py
cp give.py give
take: give.py
cp give.py take
give-assist.o: give-assist.c config.h
cd string_m/ && $(MAKE)
${CC} ${CFLAGS} ${INCLUDES} -c give-assist.c
install: all
cp give-assist $(bindir)
chmod 4555 $(bindir)/give-assist
cp give $(bindir)
cp take $(bindir)
cp give.1 $(mandir)/man1
chmod 644 $(mandir)/man1/give.1
cp take.1 $(mandir)/man1
chmod 644 $(mandir)/man1/take.1
clean:
cd string_m/ && $(MAKE) $@
rm -f ${PROGS} ${CLEANFILES} *.tar.bz2
test:
@echo No test.
check:
splint ${INCLUDES} +posixlib -compdef give-assist.c
check-some:
splint ${INCLUDES} +posixlib -nullpass -compdef -nullderef give-assist.c
root: give-assist
chmod 4555 give-assist