needed is_Bad check
[libfirm] / firmjni / Makefile.in
index 09508ae..67b6a83 100644 (file)
@@ -47,9 +47,9 @@ CPPFLAGS +=   -I$(top_srcdir)/ir/ir  -I$(top_srcdir)/ir/common        \
                -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr          \
                -I$(top_srcdir)/ir/tv -I$(top_srcdir)/ir/debug          \
                -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/opt           \
-               -I$(top_srcdir)/ir/st
+               -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/stat
 
-LDFLAGS += -I$(topdir)
+LDFLAGS += -I$(topdir) -L$(libdir) -lfirmlower -labor
 
 FIRM_HEADERS=$(notdir $(FIRM_PATH_HEADERS))
 MEMBERS=$(subst .h,.m,$(shell echo $(FIRM_HEADERS)|$(SHELL_TOUPPER)))
@@ -64,6 +64,7 @@ MEMBERS += $(IMPL_MEMBERS)
 FIRM_PATH_HEADERS=common/firm.h common/firm_common.h \
        ident/ident.h tv/tv.h \
        tr/type.h tr/entity.h tr/type_or_entity.h tr/tpop.h tr/mangle.h \
+       tr/type_identify.h                                      \
        ir/irprog.h ir/irgraph.h ir/irnode.h ir/irmode.h ir/irop.h \
        ir/ircons.h ir/ircgcons.h ir/irflag.h ir/irvrfy.h ir/irdump.h \
        ir/iropt.h ir/irgopt.h ir/ircgopt.h \
@@ -133,10 +134,10 @@ else
 HEAPANALLIB =
 endif
 
-
+# We need firmlower and abor for heap analysis stuff, wich is called from aux/Heapanal.java
+# BY the way, what is sw/lib/  can this be removed???
 jni:    $(HFILES) $(OFILES)  # ../libfirm.a
-       gcc -shared -fPIC -o $(LIBNAME) *.o -lfirm -L.. $(HEAPANALLIB) $(LDFLAGS) -liberty -L../../sw/lib
-
+       gcc -shared -fPIC -o $(LIBNAME) *.o -lfirm -lxml2 -L.. $(HEAPANALLIB) $(LDFLAGS) -liberty -L../../sw/lib
 install:
        cp libfirmjni.so $(libdir)
 #      mkdir $(javadir)