TARGET := android_cec_remote_test LIBRETRO_COMM_DIR := ../../../libretro-common DRIVER_DIR := ../../../input/drivers # The source test is the driver's own (android_kbd_route.h, which # takes no NDK types); the Android side of the pipeline is reproduced # in the harness, because the driver only builds against the NDK. SOURCES := android_cec_remote_test.c OBJS := $(SOURCES:.c=.o) CFLAGS += -Wall -Wextra -std=c89 -pedantic -g1 -O1 \ -I$(LIBRETRO_COMM_DIR)/include -I$(DRIVER_DIR) ifneq ($(SANITIZER),) CFLAGS := -fsanitize=$(SANITIZER) -fno-omit-frame-pointer $(CFLAGS) LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS) endif all: $(TARGET) $(TARGET): $(OBJS) $(CC) -o $@ $(OBJS) $(LDFLAGS) android_cec_remote_test.o: $(DRIVER_DIR)/android_kbd_route.h $(DRIVER_DIR)/android_key_state.h check: all ./$(TARGET) clean: rm -f $(OBJS) $(TARGET) .PHONY: all check clean