summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index e91dc1b..7caa000 100644
--- a/Makefile
+++ b/Makefile
@@ -26,9 +26,8 @@ runtime/%.so: | runtime
$(bins): %:
$(LINK.c) $(filter %.c %.a,$^) $(LDLIBS) -o $@
-verbose: src/wrapper/verbose.h
wrapper.a: private override CPPFLAGS += -D_GNU_SOURCE
-wrapper.a: verbose src/wrapper/wrapper.c src/wrapper/wrapper.h
+wrapper.a: src/wrapper/verbose.h src/wrapper/wrapper.c src/wrapper/wrapper.h
runtime/libdl.so: private override CPPFLAGS += -D_GNU_SOURCE -DLINKER_DEBUG=1
runtime/libdl.so: private override CFLAGS += -Wno-pedantic -Wno-variadic-macros -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
@@ -37,7 +36,7 @@ runtime/libc.so: private override CPPFLAGS += -D_GNU_SOURCE
runtime/libc.so: private override LDFLAGS += -Wl,-wrap,_IO_file_xsputn
runtime/libc.so: private override CFLAGS += -Wno-deprecated-declarations
runtime/libc.so: private override LDLIBS += `pkg-config --libs libbsd libunwind`
-runtime/libc.so: verbose src/libc.c src/libc-stdio.c src/libc-sha1.c src/libc-antiantidebug.c
+runtime/libc.so: src/wrapper/verbose.h src/libc.c src/libc-stdio.c src/libc-sha1.c src/libc-antiantidebug.c
runtime/libpthread.so: private override CPPFLAGS += -D_GNU_SOURCE
runtime/libpthread.so: private override LDLIBS += -lpthread
runtime/libpthread.so: src/libpthread.c
@@ -49,21 +48,22 @@ runtime/libEGL.so: private override LDLIBS += -lEGL `pkg-config --libs glfw3`
runtime/libEGL.so: src/libEGL.c
runtime/libOpenSLES.so: private override CFLAGS += -Wno-pedantic
runtime/libOpenSLES.so: wrapper.a src/libOpenSLES.c
-native: runtime/libdl.so runtime/libc.so runtime/libpthread.so runtime/libandroid.so runtime/liblog.so runtime/libEGL.so runtime/libOpenSLES.so
jvm.a: private override CPPFLAGS += -D_GNU_SOURCE
jvm.a: private override CFLAGS += -Wno-unused-variable -Wno-pedantic
jvm.a: wrapper.a src/jvm/jvm.c
runtime/libjvm-java.so: private override CPPFLAGS += -D_GNU_SOURCE
-runtime/libjvm-java.so: verbose src/libjvm-java.c
-runtime/libjvm-android.so: verbose src/libjvm-android.c
-runtime/libjvm-unity.so: verbose src/libjvm-unity.c
-java: runtime/libjvm-java.so runtime/libjvm-android.so runtime/libjvm-unity.so
+runtime/libjvm-java.so: src/wrapper/verbose.h src/libjvm-java.c
+runtime/libjvm-android.so: src/wrapper/verbose.h src/libjvm-android.c
+runtime/libjvm-unity.so: src/wrapper/verbose.h src/libjvm-unity.c
app: private override CFLAGS += -Wno-pedantic -D_DEFAULT_SOURCE
app: private override LDLIBS += -ldl -Wl,-rpath,runtime runtime/libdl.so runtime/libpthread.so
app: private override LDLIBS += runtime/libjvm-java.so runtime/libjvm-android.so runtime/libjvm-unity.so
-app: wrapper.a src/app.c native jvm.a java
+app: wrapper.a src/app.c runtime/libdl.so
+app: runtime/libc.so runtime/libpthread.so runtime/libandroid.so runtime/liblog.so
+app: runtime/libEGL.so runtime/libOpenSLES.so
+app: jvm.a runtime/libjvm-java.so runtime/libjvm-android.so runtime/libjvm-unity.so
install-bin: $(bins)
install -Dm755 $^ -t "$(DESTDIR)$(PREFIX)$(BINDIR)"