-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (19 loc) · 930 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
all: ProgramFragment SectionTitle
SEC_TITLE_DIR=src/cc/arrow/WikitextDocument/StringTuple
PROGRAM_FRAGMENT_DIR=src/cc/arrow/WikitextDocument/ProgramFragmentTuple
ProgramFragment.o: $(PROGRAM_FRAGMENT_DIR)/ProgramFragment.cc
g++ $(CXX_FLAGS) -c $(PROGRAM_FRAGMENT_DIR)/ProgramFragment.cc -o $(PROGRAM_FRAGMENT_DIR)/ProgramFragment.o
ProgramFragment: ProgramFragment.o
g++ $(CXX_FLAGS) $(TINYXML_LIB) $(PROGRAM_FRAGMENT_DIR)/ProgramFragment.o -o $(PROGRAM_FRAGMENT_DIR)/ProgramFragment -ltinyxml
SectionTitle.o: $(SEC_TITLE_DIR)/SectionTitle.cc $(SEC_TITLE_DIR)/SectionTitle.h
g++ $(CXX_FLAGS) -c $(SEC_TITLE_DIR)/SectionTitle.cc -o $(SEC_TITLE_DIR)/SectionTitle.o
SectionTitle: SectionTitle.o
g++ $(CXX_FLAGS) $(TINYXML_LIB) $(SEC_TITLE_DIR)/SectionTitle.o -o $(SEC_TITLE_DIR)/SectionTitle -ltinyxml
docs:
./src/sh/makedocs.sh
test:
./src/test.sh
clean:
find . -name "*.o" | xargs -r rm
.PHONY: docs test
FORCE: