2013-01-23 13:50:50 +00:00
|
|
|
include ../../config-user.mk
|
|
|
|
include ../../mk/${COMPILER}.mk
|
2013-12-22 03:37:05 +00:00
|
|
|
SHLR?=$(shell pwd)/..
|
2013-01-23 13:50:50 +00:00
|
|
|
|
2013-09-07 00:20:38 +00:00
|
|
|
#CFLAGS+=-g -ggdb -fPIC
|
2014-01-08 22:23:06 +00:00
|
|
|
CFLAGS+=-fPIC -g
|
2012-11-16 01:29:30 +00:00
|
|
|
CFLAGS+=-I../../libr/include
|
2012-11-16 01:41:01 +00:00
|
|
|
LDFLAGS+=-L../../libr/util
|
2013-12-20 05:10:16 +00:00
|
|
|
LDFLAGS+=-L../../libr/sdb
|
2012-11-16 01:29:30 +00:00
|
|
|
OBJS=code.o class.o ops.o
|
|
|
|
|
|
|
|
all: out
|
|
|
|
|
2014-01-08 22:23:06 +00:00
|
|
|
out: ${OBJS} main.o
|
|
|
|
${CC} ${LDFLAGS} ${CFLAGS} -I. ${OBJS} main.o \
|
|
|
|
-lr_util ${SHLR}/sdb/src/libsdb.a -o out
|
2012-11-16 01:29:30 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJS} a.out
|