mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-28 01:56:12 +00:00

- Created a simple JSON string builder lib so its easier to build the JSON strings. - Fixed errors and missing symbols on Mac Build
38 lines
699 B
Makefile
38 lines
699 B
Makefile
include ../../config-user.mk
|
|
include ../../mk/${COMPILER}.mk
|
|
SHLR?=$(shell pwd)/..
|
|
|
|
OSTYPE?=$(shell uname | tr 'A-Z' 'a-z')
|
|
ifeq (${OSTYPE},)
|
|
all:
|
|
echo LE FAIL
|
|
exit 1
|
|
endif
|
|
|
|
ifeq (,$(findstring cygwin,${OSTYPE}))
|
|
ifeq (,$(findstring mingw32,${OSTYPE}))
|
|
CFLAGS+=-fPIC
|
|
else
|
|
CFLAGS+=-DMINGW32=1
|
|
endif
|
|
endif
|
|
|
|
#CFLAGS+=-g -ggdb
|
|
CFLAGS+=-I../../libr/include
|
|
LDFLAGS+=-L../../libr/util
|
|
OBJS=code.o class.o ops.o dsojson.o
|
|
|
|
all: out libr_java.a
|
|
|
|
libr_java.a: ${OBJS}
|
|
rm -f libr_java.a
|
|
${CC_AR} libr_java.a ${OBJS}
|
|
${RANLIB} libr_java.a
|
|
|
|
out: ${OBJS} main.o
|
|
${CC} ${LDFLAGS} ${CFLAGS} -I. ${OBJS} main.o \
|
|
-lr_util ${SHLR}/sdb/src/libsdb.a -o out
|
|
|
|
clean:
|
|
rm -f ${OBJS} main.o a.out libr_java.a out
|