mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 00:36:42 -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
506 B
Makefile
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
|