make libjson from /sys/src/cmd/btc/json.c

front
BurnZeZ 2013-10-27 15:44:33 -04:00
parent 632b7adffb
commit 2dc7e311f4
6 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,6 @@
#pragma src "/sys/src/libjson"
#pragma lib "libjson.a"
typedef struct JSONEl JSONEl;
typedef struct JSON JSON;

View File

@ -4,8 +4,8 @@
#include <thread.h>
#include <9p.h>
#include <String.h>
#include <json.h>
#include "dat.h"
#include "json.h"
void gofs(void);

View File

@ -4,9 +4,6 @@ TARG=httpfs sign genkey
BIN=/$objtype/bin/btc
OFILES=\
json.$O\
HFILES=\
dat.h\

View File

@ -1,7 +1,7 @@
#include <u.h>
#include <libc.h>
#include <ctype.h>
#include "json.h"
#include <json.h>
typedef struct Lex Lex;

10
sys/src/libjson/mkfile Normal file
View File

@ -0,0 +1,10 @@
</$objtype/mkfile
LIB=/$objtype/lib/libjson.a
OFILES=\
json.$O
HFILES=\
/sys/include/json.h
</sys/src/cmd/mksyslib

View File

@ -22,6 +22,7 @@ LIBS=\
libhttpd\
libip\
liblex\
libjson\
libmach\
libmemdraw\
libmemlayer\