Commit 780f6cbd382b2df56110a0d855eb39e0450c5a28

Ozkan Sezer 2021-11-14T01:10:32

build libSDL2_test too with Makefile.minimal

diff --git a/Makefile.minimal b/Makefile.minimal
index 65d561c..97ce201 100644
--- a/Makefile.minimal
+++ b/Makefile.minimal
@@ -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 \
 
+TSOURCES = src/test/*.c
+
 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
+TOBJECTS= $(shell echo $(TSOURCES) | sed -e 's,\.c,\.o,g')
 
-all: $(TARGET)
+all: $(TARGET) $(TESTTARGET)
 
 $(TARGET): $(OBJECTS)
 	$(AR) crv $@ $^
 	$(RANLIB) $@
 
+$(TESTTARGET): $(TOBJECTS)
+	$(AR) crv $@ $^
+	$(RANLIB) $@
+
 clean:
-	rm -f $(TARGET) $(OBJECTS)
+	rm -f $(TARGET) $(TESTTARGET) $(OBJECTS) $(TOBJECTS)