Skip to content

Instantly share code, notes, and snippets.

View debanjan-basu's full-sized avatar
🎯
Focusing

Debanjan Basu debanjan-basu

🎯
Focusing
  • Toronto, Canada
View GitHub Profile
@debanjan-basu
debanjan-basu / Makefile
Created March 29, 2016 12:24
JSON to BSON conversion in C
all: json2bson
clean:
rm -f json2bson
json2bson: json2bson.c
${CC} $(shell pkg-config --cflags json libmongo-client glib-2.0) -Wall -O0 -ggdb3 -std=c99 ${CFLAGS} \
$(shell pkg-config --libs json libmongo-client glib-2.0) -o $@ $^
check: all
./json2bson <test.json >test.bson