make libjson from /sys/src/cmd/btc/json.c
This commit is contained in:
parent
632b7adffb
commit
2dc7e311f4
|
@ -1,3 +1,6 @@
|
||||||
|
#pragma src "/sys/src/libjson"
|
||||||
|
#pragma lib "libjson.a"
|
||||||
|
|
||||||
typedef struct JSONEl JSONEl;
|
typedef struct JSONEl JSONEl;
|
||||||
typedef struct JSON JSON;
|
typedef struct JSON JSON;
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
#include <thread.h>
|
#include <thread.h>
|
||||||
#include <9p.h>
|
#include <9p.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
#include <json.h>
|
||||||
#include "dat.h"
|
#include "dat.h"
|
||||||
#include "json.h"
|
|
||||||
|
|
||||||
void gofs(void);
|
void gofs(void);
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,6 @@ TARG=httpfs sign genkey
|
||||||
|
|
||||||
BIN=/$objtype/bin/btc
|
BIN=/$objtype/bin/btc
|
||||||
|
|
||||||
OFILES=\
|
|
||||||
json.$O\
|
|
||||||
|
|
||||||
HFILES=\
|
HFILES=\
|
||||||
dat.h\
|
dat.h\
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <u.h>
|
#include <u.h>
|
||||||
#include <libc.h>
|
#include <libc.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "json.h"
|
#include <json.h>
|
||||||
|
|
||||||
typedef struct Lex Lex;
|
typedef struct Lex Lex;
|
||||||
|
|
10
sys/src/libjson/mkfile
Normal file
10
sys/src/libjson/mkfile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
</$objtype/mkfile
|
||||||
|
|
||||||
|
LIB=/$objtype/lib/libjson.a
|
||||||
|
OFILES=\
|
||||||
|
json.$O
|
||||||
|
|
||||||
|
HFILES=\
|
||||||
|
/sys/include/json.h
|
||||||
|
|
||||||
|
</sys/src/cmd/mksyslib
|
|
@ -22,6 +22,7 @@ LIBS=\
|
||||||
libhttpd\
|
libhttpd\
|
||||||
libip\
|
libip\
|
||||||
liblex\
|
liblex\
|
||||||
|
libjson\
|
||||||
libmach\
|
libmach\
|
||||||
libmemdraw\
|
libmemdraw\
|
||||||
libmemlayer\
|
libmemlayer\
|
||||||
|
|
Loading…
Reference in a new issue