mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-18 14:50:56 +00:00
Replace build scripts with Makefiles for faster recompiles
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
rm *.o libnv_io.so
|
||||
gcc -I $JAVA_HOME/include -I $JAVA_HOME/include/linux -fPIC -L. -c *.c
|
||||
gcc -shared -Wl,-soname,libnv_io.so -Wl,--no-undefined -o libnv_io.so *.o -L.
|
||||
rm *.o
|
||||
@@ -0,0 +1,17 @@
|
||||
CFLAGS = -I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/linux -fPIC -L.
|
||||
LDFLAGS = -shared -Wl,--no-undefined -L.
|
||||
|
||||
SRCS = nv_io_jni.c
|
||||
TARGET_LIB = libnv_io.so
|
||||
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
$(TARGET_LIB): $(OBJS)
|
||||
$(CC) ${LDFLAGS} -o $@ $^
|
||||
|
||||
all: $(TARGET_LIB)
|
||||
|
||||
clean:
|
||||
rm -f ${TARGET_LIB} ${OBJS} $(SRCS:.c=.d)
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user