Files
RetroArch/samples/input/bind_trigger_axis/Makefile
T
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

25 lines
502 B
Makefile

TARGET := bind_trigger_axis_test
REPO_ROOT := ../../..
CFLAGS += -Wall -Wno-unused -std=gnu99 -g1 -O1 \
-I$(REPO_ROOT)/libretro-common/include
ifneq ($(SANITIZER),)
CFLAGS += -fsanitize=$(SANITIZER) -fno-omit-frame-pointer
LDFLAGS += -fsanitize=$(SANITIZER)
endif
all: $(TARGET)
$(TARGET): bind_trigger_axis_test.c $(REPO_ROOT)/menu/menu_bind_trigger.h
$(CC) $(CFLAGS) -o $@ bind_trigger_axis_test.c $(LDFLAGS)
check: all
./$(TARGET)
clean:
rm -f $(TARGET)
.PHONY: all check clean