Files
RetroArch/samples/input/keyboard_devices/Makefile
LibretroAdmin 21635dd171 samples: build with -g1 instead of -g
The sample and test builds used full debug info. -g1 keeps what
sanitizer reports and backtraces need - function names, files and line
numbers - and drops the variable and type information nobody reads in
CI. Objects get about 30% smaller (rh265.o under ASan+UBSan: 5.1MB to
3.7MB), so the ccache caches hold more of each job's build and are
quicker to restore and save.
2026-10-13 11:50:11 +02:00

23 lines
547 B
Makefile

TARGET := keyboard_devices_test
# Which of the devices a system reports are the keyboards on the desk:
# the grouping the udev input driver uses, on its own.
# make && make check
REPO_ROOT := ../../..
CFLAGS += -Wall -std=gnu89 -Wdeclaration-after-statement -g1 -O1 \
-I$(REPO_ROOT)/libretro-common/include
all: $(TARGET)
$(TARGET): keyboard_devices_test.c $(REPO_ROOT)/input/common/input_keyboard_devices.h
$(CC) $(CFLAGS) -o $@ keyboard_devices_test.c
check: all
./$(TARGET)
clean:
rm -f $(TARGET)
.PHONY: all check clean