Files
RetroArch/samples/input/device_pins/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
506 B
Makefile

TARGET := device_pins_test
# A port keeps its keyboard by what the keyboard is, not by its place
# in a list: the rule, 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): device_pins_test.c $(REPO_ROOT)/input/common/input_device_pins.h
$(CC) $(CFLAGS) -o $@ device_pins_test.c
check: all
./$(TARGET)
clean:
rm -f $(TARGET)
.PHONY: all check clean