mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
17 lines
347 B
Makefile
17 lines
347 B
Makefile
CFLAGS = -I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/linux -fPIC -L.
|
|
LDFLAGS = -shared -Wl,--no-undefined -L. -lasound
|
|
|
|
SRCS = nv_alsa.c nv_alsa_jni.c
|
|
TARGET_LIB = libnv_alsa.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 |