mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 18:49:37 -10:00
The lane's own kernel.h, libpad.h and libmtap.h stand-ins move into tools/platform_stubs/ps2: libpad.h and libmtap.h as new stubs with ps2sdk's values and prototypes, and ALIGNED() into the existing kernel.h stub, where ps2sdk defines it. The lane defines DIntr() and EIntr(), which that stub declares.
33 lines
938 B
Makefile
33 lines
938 B
Makefile
# The PS2 joypad driver, against the tree's PS2 stubs, with the libpad
|
|
# and libmtap calls defined by the test, which includes the driver's
|
|
# source itself.
|
|
TARGET := ps2_joypad_test
|
|
|
|
RARCH_DIR := ../../..
|
|
LIBRETRO_COMM_DIR := $(RARCH_DIR)/libretro-common
|
|
|
|
CFLAGS += -Wall -std=gnu99 -g1 -O1 -DRARCH_INTERNAL -DPS2 \
|
|
-I$(RARCH_DIR)/tools/platform_stubs/ps2 -I$(RARCH_DIR) -I$(LIBRETRO_COMM_DIR)/include
|
|
|
|
ifneq ($(SANITIZER),)
|
|
CFLAGS := -fsanitize=$(SANITIZER) -fno-omit-frame-pointer $(CFLAGS)
|
|
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS)
|
|
endif
|
|
ifneq ($(SAN),)
|
|
CFLAGS := -fsanitize=$(SAN) -fno-omit-frame-pointer $(CFLAGS)
|
|
LDFLAGS := -fsanitize=$(SAN) $(LDFLAGS)
|
|
endif
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): ps2_joypad_test.c $(RARCH_DIR)/input/drivers_joypad/ps2_joypad.c
|
|
$(CC) $(CFLAGS) -o $@ ps2_joypad_test.c $(LDFLAGS)
|
|
|
|
check: all
|
|
./$(TARGET)
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(TARGET).exe
|
|
|
|
.PHONY: all check clean
|