2010-01-15 12:02:54 +00:00
|
|
|
include ../config.mk
|
2010-07-16 21:13:34 +00:00
|
|
|
|
|
|
|
NAME=r_util
|
2012-10-03 12:31:35 +00:00
|
|
|
DEPS=
|
2011-04-17 01:54:27 +00:00
|
|
|
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS=mem.o pool.o num.o str.o hex.o file.o alloca.o range.o log.o
|
2012-10-19 22:31:18 +00:00
|
|
|
OBJS+=prof.o cache.o sys.o buf.o w32-sys.o base64.o base85.o name.o
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS+=list.o flist.o ht.o ht64.o mixed.o btree.o chmod.o graph.o
|
|
|
|
OBJS+=regex/regcomp.o regex/regerror.o regex/regexec.o uleb128.o
|
2012-11-20 17:42:23 +00:00
|
|
|
OBJS+=sandbox.o calc.o thread.o lock.o strpool.o bitmap.o
|
2011-09-14 00:07:06 +00:00
|
|
|
|
2011-04-17 01:54:27 +00:00
|
|
|
# DO NOT BUILD r_big api (not yet used and its buggy)
|
|
|
|
ifeq (1,0)
|
2010-07-16 21:13:34 +00:00
|
|
|
ifeq (${HAVE_LIB_GMP},1)
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS+=big-gmp.o
|
2010-07-16 21:13:34 +00:00
|
|
|
else
|
2011-04-15 07:22:34 +00:00
|
|
|
ifeq (${HAVE_LIB_SSL},1)
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS+=big-ssl.o
|
2010-07-16 21:13:34 +00:00
|
|
|
else
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS+=big.o
|
2010-07-16 21:13:34 +00:00
|
|
|
endif
|
|
|
|
endif
|
2011-04-17 01:54:27 +00:00
|
|
|
endif
|
2010-07-16 21:13:34 +00:00
|
|
|
|
2012-12-03 03:28:05 +00:00
|
|
|
CFLAGS+=-DWWWROOT=\"${WWWROOT}\"
|
2010-05-24 09:15:32 +00:00
|
|
|
LDFLAGS+=${BN_LIBS}
|
2012-10-25 13:21:47 +00:00
|
|
|
LDFLAGS=${TH_LIBS}
|
2009-02-05 21:08:46 +00:00
|
|
|
|
|
|
|
include ../rules.mk
|
2011-03-17 18:05:39 +00:00
|
|
|
|
|
|
|
ht64:
|
|
|
|
cat ht.c | sed -e s,hashtable,hashtable64,g -e s,HashTable,HashTable64,g -e s,ut32,ut64,g > ht64.c
|
|
|
|
#cat ht.c ht64.c | sed -e 's,) {,);,'
|
2011-03-18 08:35:02 +00:00
|
|
|
m:
|
2012-10-03 12:31:35 +00:00
|
|
|
${CC} mixed.c -I ../include/ -DTEST=1 -lr_util -g
|
2011-03-18 08:53:50 +00:00
|
|
|
|
|
|
|
h:
|
2012-10-03 12:31:35 +00:00
|
|
|
${CC} ht.c -I ../include/ -DTEST=1 -lr_util -g
|