X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=firmjni%2FMakefile.in;h=9ffe35a5353f266459c2bc55bf2a6eff73f398a7;hb=e70c22e8aa4cc93e7d72f58453c03cb9bd797e31;hp=2c2fb73374d10d12e3efeeee570d836f87f5f31b;hpb=840e3b3f479b685c350f86f44fb01351756b4796;p=libfirm diff --git a/firmjni/Makefile.in b/firmjni/Makefile.in index 2c2fb7337..9ffe35a53 100644 --- a/firmjni/Makefile.in +++ b/firmjni/Makefile.in @@ -1,4 +1,4 @@ - +# # Project: libFIRM # File name: firmjni/Makefile.in # Purpose: @@ -83,7 +83,7 @@ MEMBERS += $(IMPL_MEMBERS) # How to pass function pointers? Or how to obtain them? # Irgwalk.m Typewalk.m # -FIRM_PATH_HEADERS=common/firm.h common/firm_common.h \ +FIRM_PATH_HEADERS=common/firm_types.h 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 \ @@ -91,7 +91,8 @@ FIRM_PATH_HEADERS=common/firm.h common/firm_common.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 \ ana/irouts.h ana/irdom.h ana/irloop.h ana/cgana.h \ - ir/irgmod.h tr/typegmod.h opt/tailrec.h arch/archop.h + ir/irgmod.h tr/typegmod.h opt/tailrec.h arch/archop.h \ + ana/irextbb.h FIRM_SOURCE_DIR_HEADERS=$(addprefix $(SOURCE_DIR)/,$(FIRM_HEADERS)) @@ -135,25 +136,25 @@ Type_or_entity.h: Type_or_entity.class Dbginfo.java: - cp $(top_srcdir)/firmjni/aux/Dbginfo.java $(top_srcdir)/firmjni/aux/Dbginfo.c . + cp $(top_srcdir)/firmjni/auxilliary/Dbginfo.java $(top_srcdir)/firmjni/auxilliary/Dbginfo.c . Heapanal.java: - cp $(top_srcdir)/firmjni/aux/Heapanal.java $(top_srcdir)/firmjni/aux/Heapanal.c . + cp $(top_srcdir)/firmjni/auxilliary/Heapanal.java $(top_srcdir)/firmjni/auxilliary/Heapanal.c . %.h: %.class javah -classpath $(topdir) -o $@ $(PACKAGENAME).$(<:.class=) %.o: %.c %.h - gcc $(CPPFLAGS) -c $< -o $@ + $(CC) $(CPPFLAGS) -c $< -o $@ $(OFILES): - gcc $(CPPFLAGS) -c $(@:.o=.c) -o $@ + $(CC) $(CPPFLAGS) -c $(@:.o=.c) -o $@ -# We need firmlower and abor for heap analysis stuff, which is called from aux/Heapanal.java +# We need firmlower and abor for heap analysis stuff, which is called from auxilliary/Heapanal.java # BY the way, what is ../../sw/lib/ can this be removed? Probaly, so I did. jni: $(HFILES) $(OFILES) # ../libfirm.a - gcc -shared -fPIC -o $(LIBNAME) *.o -lfirm -L.. $(LDFLAGS) + $(CC) -shared -fPIC -o $(LIBNAME) *.o -lfirm -L.. $(LDFLAGS) install: cp libfirmjni.so $(libdir) # mkdir $(javadir) @@ -200,7 +201,7 @@ $(FIRM_SOURCE_DIR_HEADERS): $(SOURCE_DIR) # troff -a -C -z $(FIRM_SRC_HEADER) > $(SOURCE_DIR)/$(notdir $@) $(FIRM_HEADERS):$(FIRM_SOURCE_DIR_HEADERS) $(SOURCE_DIR)/firm_typedefs.h - gcc $(CPPFLAGS) -E -C -P $(SOURCE_DIR)/$@ -o $@ + $(CC) $(CPPFLAGS) -E -C -P $(SOURCE_DIR)/$@ -o $@ ############################################################################### # Call crecoder to construct from each header a .java file specifying the @@ -212,7 +213,7 @@ $(FIRM_HEADERS):$(FIRM_SOURCE_DIR_HEADERS) $(SOURCE_DIR)/firm_typedefs.h H_FROM_JAVA=$(subst .java,.h,$(shell echo $@|$(SHELL_TOLOWER))) %.java: $(FIRM_SOURCE_DIR_HEADERS) $(SOURCE_DIR)/firm_typedefs.h - gcc $(CPPFLAGS) -E -C -P $(SOURCE_DIR)/$(H_FROM_JAVA) -o $(H_FROM_JAVA) + $(CC) $(CPPFLAGS) -E -C -P $(SOURCE_DIR)/$(H_FROM_JAVA) -o $(H_FROM_JAVA) env CLASSPATH=$(FIRM_JNI_TOOLS_DIR)/crecoder.jar:$$CLASSPATH java crecoder/tools/jniBuilder/BuildJNI $(H_FROM_JAVA);\ rm $(H_FROM_JAVA); # remove the patched header so that further compilation finds the proper firm headers