yuzu-early/externals/SDL/Makefile.minimal

62 lines
1.1 KiB
Makefile
Raw Normal View History

2021-04-18 05:35:25 +02:00
# Makefile to build the SDL library
INCLUDE = -I./include
CFLAGS = -g -O2 $(INCLUDE)
AR = ar
RANLIB = ranlib
2021-12-07 02:20:09 +01:00
TARGET = libSDL2.a
TESTTARGET = libSDL2_test.a
2021-04-18 05:35:25 +02:00
SOURCES = \
src/*.c \
2021-12-07 02:20:09 +01:00
src/atomic/*.c \
2021-04-18 05:35:25 +02:00
src/audio/*.c \
src/audio/dummy/*.c \
src/cpuinfo/*.c \
src/events/*.c \
src/file/*.c \
src/haptic/*.c \
src/haptic/dummy/*.c \
2021-12-07 02:20:09 +01:00
src/hidapi/*.c \
2021-04-18 05:35:25 +02:00
src/joystick/*.c \
src/joystick/dummy/*.c \
src/loadso/dummy/*.c \
src/power/*.c \
src/filesystem/dummy/*.c \
2021-12-07 02:20:09 +01:00
src/locale/*.c \
src/locale/dummy/*.c \
src/misc/*.c \
src/misc/dummy/*.c \
2021-04-18 05:35:25 +02:00
src/render/*.c \
src/render/software/*.c \
src/sensor/*.c \
src/sensor/dummy/*.c \
src/stdlib/*.c \
2021-12-07 02:20:09 +01:00
src/libm/*.c \
2021-04-18 05:35:25 +02:00
src/thread/*.c \
src/thread/generic/*.c \
src/timer/*.c \
src/timer/dummy/*.c \
src/video/*.c \
2021-12-07 02:20:09 +01:00
src/video/yuv2rgb/*.c \
2021-04-18 05:35:25 +02:00
src/video/dummy/*.c \
2021-12-07 02:20:09 +01:00
TSOURCES = src/test/*.c
2021-04-18 05:35:25 +02:00
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
2021-12-07 02:20:09 +01:00
TOBJECTS= $(shell echo $(TSOURCES) | sed -e 's,\.c,\.o,g')
2021-04-18 05:35:25 +02:00
2021-12-07 02:20:09 +01:00
all: $(TARGET) $(TESTTARGET)
2021-04-18 05:35:25 +02:00
$(TARGET): $(OBJECTS)
$(AR) crv $@ $^
$(RANLIB) $@
2021-12-07 02:20:09 +01:00
$(TESTTARGET): $(TOBJECTS)
$(AR) crv $@ $^
$(RANLIB) $@
2021-04-18 05:35:25 +02:00
clean:
2021-12-07 02:20:09 +01:00
rm -f $(TARGET) $(TESTTARGET) $(OBJECTS) $(TOBJECTS)