mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-25 03:25:16 -10:00
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.
23 lines
547 B
Makefile
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
|