mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-23 19:03:27 +08:00
build libSDL2_test too with Makefile.minimal
This commit is contained in:
parent
eb98ff4740
commit
780f6cbd38
@ -6,6 +6,8 @@ AR = ar
|
||||
RANLIB = ranlib
|
||||
|
||||
TARGET = libSDL2.a
|
||||
TESTTARGET = libSDL2_test.a
|
||||
|
||||
SOURCES = \
|
||||
src/*.c \
|
||||
src/atomic/*.c \
|
||||
@ -40,13 +42,20 @@ SOURCES = \
|
||||
src/video/yuv2rgb/*.c \
|
||||
src/video/dummy/*.c \
|
||||
|
||||
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
|
||||
TSOURCES = src/test/*.c
|
||||
|
||||
all: $(TARGET)
|
||||
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
|
||||
TOBJECTS= $(shell echo $(TSOURCES) | sed -e 's,\.c,\.o,g')
|
||||
|
||||
all: $(TARGET) $(TESTTARGET)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(AR) crv $@ $^
|
||||
$(RANLIB) $@
|
||||
|
||||
$(TESTTARGET): $(TOBJECTS)
|
||||
$(AR) crv $@ $^
|
||||
$(RANLIB) $@
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJECTS)
|
||||
rm -f $(TARGET) $(TESTTARGET) $(OBJECTS) $(TOBJECTS)
|
||||
|
Loading…
Reference in New Issue
Block a user