LIB_TARGETS += libtenyrjit$(DYLIB_SUFFIX)

# TODO keep these changes from affecting Makefiles that include this one
CXXFLAGS += -g
CXXFLAGS += -std=c++11
CXXFLAGS += -fPIC

ASMJIT_BASE = $(TOP)/3rdparty/asmjit
ASMJIT_SRC = $(ASMJIT_BASE)/src
vpath %.cpp $(ASMJIT_SRC)/asmjit/base
vpath %.cpp $(ASMJIT_SRC)/asmjit/x86

ASMJIT_OBJS = \
    assembler.o codegen.o compiler.o constpool.o containers.o context.o \
    cpuinfo.o cputicks.o error.o globals.o intutil.o logger.o operand.o \
    runtime.o string.o vmem.o zone.o \
    x86assembler.o x86compiler.o x86context.o x86cpuinfo.o x86inst.o \
    x86operand.o x86operand_regs.o x86scheduler.o

# Suppress warnings on code we do not control
$(ASMJIT_OBJS): CXXFLAGS := $(filter-out -W%,$(CXXFLAGS))

libtenyrjit$(DYLIB_SUFFIX): CPPFLAGS += -I$(ASMJIT_SRC)
libtenyrjit$(DYLIB_SUFFIX): LDFLAGS  += -fPIC -shared
libtenyrjit$(DYLIB_SUFFIX): $(ASMJIT_OBJS)

CLEAN_FILES += libtenyrjit$(DYLIB_SUFFIX)


LIB_TARGETS += libtenyrjit$(DYLIB_SUFFIX)

# TODO keep these changes from affecting Makefiles that include this one
CXXFLAGS += -g
CXXFLAGS += -fPIC

ASMJIT_BASE = $(TOP)/3rdparty/asmjit
ASMJIT_SRC = $(ASMJIT_BASE)/src
vpath %.cpp $(ASMJIT_SRC)/asmjit/base
vpath %.cpp $(ASMJIT_SRC)/asmjit/x86

ASMJIT_OBJS = \
    assembler.o codegen.o compiler.o constpool.o containers.o context.o \
    cpuinfo.o cputicks.o error.o globals.o intutil.o logger.o operand.o \
    runtime.o string.o vmem.o zone.o \
    x86assembler.o x86compiler.o x86context.o x86cpuinfo.o x86inst.o \
    x86operand.o x86operand_regs.o x86scheduler.o

# Suppress warnings on code we do not control
$(ASMJIT_OBJS): CXXFLAGS := $(filter-out -W%,$(CXXFLAGS))

libtenyrjit$(DYLIB_SUFFIX): CPPFLAGS += -I$(ASMJIT_SRC)
libtenyrjit$(DYLIB_SUFFIX): LDFLAGS  += -fPIC -shared
libtenyrjit$(DYLIB_SUFFIX): $(ASMJIT_OBJS)

CLEAN_FILES += libtenyrjit$(DYLIB_SUFFIX)


Remove needless flag breaking Travis
Remove needless flag breaking Travis
