summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c9c552a..13688e7 100644
--- a/Makefile
+++ b/Makefile
@@ -40,9 +40,11 @@ runtime/liblog.so: runtime src/liblog.c
linker.a: CFLAGS += -D_GNU_SOURCE -DANDROID_X86_LINKER -DLINKER_DEBUG=1
linker.a: CFLAGS += -Wno-pedantic -Wno-variadic-macros -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
linker.a: src/linker/dlfcn.o src/linker/linker.o src/linker/linker_environ.o src/linker/rt.o src/linker/strlcpy.o
+jvm.a: private CFLAGS += -Wno-unused-variable
+jvm.a: src/fakejvm/jvm.o
app: private LDLIBS += -ldl -Wl,-rpath,runtime
-app: src/app.c linker.a runtime/libc.so runtime/libpthread.so runtime/libandroid.so runtime/liblog.so
+app: src/app.c linker.a jvm.a runtime/libc.so runtime/libpthread.so runtime/libandroid.so runtime/liblog.so
install-bin: $(bins)
install -Dm755 $^ -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
@@ -50,7 +52,7 @@ install-bin: $(bins)
install: install-bin
clean:
- $(RM) $(bins) *.a src/linker/*.o
+ $(RM) $(bins) *.a src/linker/*.o src/fakejvm/*.o
$(RM) -r runtime
.PHONY: all clean install