-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile~
46 lines (34 loc) · 893 Bytes
/
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
SRC_C_FILES=
SRC_H_FILES=global.h dialog.h net.h
SRC_CPP_FILES=main.cpp dialog.cpp net.cpp
SRC_HPP_FILES=
SRC_OTH_FILES=
SRCFILES=${SRC_C_FILES} ${SRC_H_FILES} ${SRC_CPP_FILES} ${SRC_HPP_FILES} \
${SRC_OTH_FILES}
OBJFILES=main.o dialog.o net.o
UTEST=
LOPTS=-lstdc++ -lrt
COPTS=-g -funsigned-char -pedantic -Wall -Wpointer-arith -Wconversion\
-Wstrict-prototypes -Wmissing-prototypes
DOL=$$
.SUFFIXES: .cpp .o .c
.c.o:
cc ${COPTS} -c $<
.cpp.o:
gcc -g -I. -c $<
all: ${OBJFILES} wmtrcmd
unittest: ${UTEST}
cppscan: cppscan.o libparse.a
gcc cppscan.o ${LOPTS} -o cppscan
wmtrcmd: ${OBJFILES}
g++ ${LOPTS} ${OBJFILES} -o wmtrcmd
sudo chown 0:0 wmtrcmd
sudo chmod u+s wmtrcmd
clean:
rm -f *.o *.a ${UTEST} wmtrcmd
checkin:
check_in ${SRCFILES}
mark_stable:
for f in ${SRCFILES}; do rcs -sStab ${DOL}f ; done
mark_released:
for f in ${SRCFILES}; do rcs -sRel ${DOL}f ; done