Skip to content

Commit 502a7de

Browse files
committed
Add JSMN code as a git submodule
Signed-off-by: Piyush Shah <[email protected]>
1 parent 6a0c8c0 commit 502a7de

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "jsmn"]
2+
path = jsmn
3+
url = https://github.com/zserge/jsmn.git

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
CC := gcc
2-
CFLAGS := -O2 -I.
2+
CFLAGS := -O2 -Iinclude -Ijsmn -DJSMN_PARENT_LINKS -DJSMN_STRICT
33

44
all: json_parser
55

6-
json_parser: src/json_parser.c
6+
json_parser: src/json_parser.c jsmn/jsmn.c
77
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
88

99
clean:

jsmn

Submodule jsmn added at 3508659

0 commit comments

Comments
 (0)