mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
4327d8322f
* Massage conflicting function signatures spotted by mingw * Fix the spp visibility issue * Enable 32 and 64bit mingw builds in the CI
50 lines
986 B
Makefile
50 lines
986 B
Makefile
NAME=r_java
|
|
|
|
include ../../config-user.mk
|
|
include ../../mk/${COMPILER}.mk
|
|
include ../../libr/config.mk
|
|
include ../../global.mk
|
|
include ../../mk/platform.mk
|
|
_INCLUDE_MK_GCC_=
|
|
include ../../mk/${COMPILER}.mk
|
|
SHLR?=..
|
|
include ../zip/deps.mk
|
|
LIBAR=libr_java.$(EXT_AR)
|
|
CC_AR=$(AR) -r $(LIBAR)
|
|
|
|
OSTYPE?=$(shell uname | tr 'A-Z' 'a-z')
|
|
ifeq (${OSTYPE},)
|
|
all:
|
|
echo "OSTYPE not defined"
|
|
exit 1
|
|
endif
|
|
|
|
CFLAGS+=${PIC_CFLAGS}
|
|
ifneq (,$(findstring mingw32,${OSTYPE}))
|
|
CFLAGS+=-DMINGW32=1
|
|
endif
|
|
# CFLAGS+=-g
|
|
|
|
CFLAGS:=-I../../libr/include -I../../libr/include/sdb $(CFLAGS)
|
|
LDFLAGS+=-L../../libr/util
|
|
OBJS=code.o class.o ops.o dsojson.o
|
|
|
|
include ../../shlr/sdb.mk
|
|
|
|
all: $(LIBAR)
|
|
|
|
RANLIB?=ranlib
|
|
|
|
$(LIBAR): ${OBJS}
|
|
rm -f libr_java.$(EXT_AR)
|
|
${CC_AR} ${OBJS}
|
|
${RANLIB} libr_java.$(EXT_AR)
|
|
|
|
out: ${OBJS} main.o
|
|
echo "COMPILER: ${COMPILER} ${CC}"
|
|
${CC} ${LDFLAGS} ${CFLAGS} -I. ${OBJS} main.o \
|
|
-lr_util ../sdb/src/libsdb.$(EXT_AR) ${LINK} -o out
|
|
|
|
clean:
|
|
rm -f ${OBJS} main.o a.out $(LIBAR) out
|