Skip to content

Commit 5450037

Browse files
committed
Toolchain adapted for CyberCalc
1 parent 7e4df50 commit 5450037

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@ jsoncpp_lib_static.dir/
4242
/src/Makefile
4343
/src/jsontestrunner/Makefile
4444
/src/jsontestrunner/jsontestrunner_exe
45-
/src/lib_json/Makefile
4645
/src/test_lib_json/Makefile
4746
/src/test_lib_json/jsoncpp_test
4847

4948
# eclipse project files
5049
.project
5150
.cproject
5251
/.settings/
52+
53+
# CyberCalc custom build
54+
src/lib_json/*.a
55+
src/lib_json/*.o

src/lib_json/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
HEADERS=json_tool.h ../../include/json/allocator.h ../../include/json/assertions.h ../../include/json/autolink.h ../../include/json/config.h ../../include/json/features.h ../../include/json/forwards.h ../../include/json/json.h ../../include/json/reader.h ../../include/json/value.h ../../include/json/version.h ../../include/json/writer.h
2+
OBJECTS=json_reader.o json_value.o json_writer.o
3+
4+
default: libjsoncpp.a
5+
6+
%.o: %.cpp $(HEADERS)
7+
g++ -c -I../../include -o $@ $<
8+
9+
libjsoncpp.a: $(OBJECTS)
10+
ar rcs libjsoncpp.a $(OBJECTS)
11+
12+
clean:
13+
rm -f libjsoncpp.a $(OBJECTS)

0 commit comments

Comments
 (0)