-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 1.09 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
# survey tool Makefile
HDR = survey.h section.h query.h question.h answer.h getput.h \
response.h result.h
SRC = survey.cc section.cc query.cc question.cc answer.cc getput.cc \
response.cc result.cc box.cc dialog.cc countQueries.cc \
helpBox.cc
TOOL_SRC = srvtool.cc
REPORT_GEN = rpgen.cc
CLASSES_OBJ = survey.o section.o query.o question.o answer.o getput.o \
response.o result.o
TOOL_OBJ = srvtool.o box.o dialog.o
S_OBJ = srvtool.o box.o dialog.o countQueries.o helpBox.o
REPORT_OBJ = rpgen.o countQueries.o
# Standard/Required Targets and variables
SHELL = /bin/sh
VERSION = 0.1.0
CXX = g++
CXXFLAGS = -g -O
DIST_FILES = ChangeLog IDEAS PROBLEMS Makefile $(SRC)
all: scc srv rpgen
scc: scc.y $(HDR) $(CLASSES_OBJ)
flex -t scc.y > scc.cc
$(CXX) -g scc.cc $(CLASSES_OBJ) -o scc -ll
srv: $(S_OBJ) $(CLASSES_OBJ)
$(CXX) -g $(S_OBJ) $(CLASSES_OBJ) -o srv -lcurses
chmod 4755 srv
rpgen: $(REPORT_OBJ) $(CLASSES_OBJ) $(HDR) $(SRC)
$(CXX) -g $(REPORT_OBJ) $(CLASSES_OBJ) -o rpgen -lm
clean:
-rm -f *.o
-rm -rf scc.dSYM
-rm -f scc srv stool scc.cc rpgen