Commit aa12f353c7ef73ac34709af63052fc3917b5d5cd

Karel Miko 2018-12-02T18:46:35

properly use test_standalone

diff --git a/makefile.mingw b/makefile.mingw
index 4a9f4d2..1bc8ae4 100644
--- a/makefile.mingw
+++ b/makefile.mingw
@@ -78,14 +78,14 @@ $(LIBMAIN_D) $(LIBMAIN_I): $(OBJECTS)
 	$(CC) -s -shared -o $(LIBMAIN_D) $^ -Wl,--enable-auto-import,--export-all -Wl,--out-implib=$(LIBMAIN_I) $(LTM_LDFLAGS)
 	$(STRIP) -S $(LIBMAIN_D)
 
-#Build test suite
+#Build test_standalone suite
 test.exe: $(LIBMAIN_S) demo/demo.c
 	$(CC) $(LTM_CFLAGS) $(LTM_LDFLAGS) demo/demo.c $(LIBMAIN_S) -DLTM_DEMO_TEST_VS_MTEST=0 -o $@
 	@echo NOTICE: start the tests by launching test.exe
 
-all: $(LIBMAIN_S) test.exe
+test_standalone: test.exe
 
-test: test.exe
+all: $(LIBMAIN_S) test_standalone
 
 clean:
 	@-cmd /c del /Q /S *.o *.a *.exe *.dll 2>nul
diff --git a/makefile.msvc b/makefile.msvc
index 68a7088..47316fe 100644
--- a/makefile.msvc
+++ b/makefile.msvc
@@ -64,14 +64,14 @@ $(OBJECTS): $(HEADERS)
 $(LIBMAIN_S): $(OBJECTS)
 	lib /out:$(LIBMAIN_S) $(OBJECTS)
 
-#Build test suite
+#Build test_standalone suite
 test.exe: $(LIBMAIN_S) demo/demo.c
 	cl $(LTM_CFLAGS) $(TOBJECTS) $(LIBMAIN_S) $(LTM_LDFLAGS) demo/demo.c /DLTM_DEMO_TEST_VS_MTEST=0 /Fe$@
 	@echo NOTICE: start the tests by launching test.exe
 
-all: $(LIBMAIN_S) test.exe
+test_standalone: test.exe
 
-test: test.exe
+all: $(LIBMAIN_S) test_standalone
 
 clean:
 	@-cmd /c del /Q /S *.OBJ *.LIB *.EXE *.DLL 2>nul
diff --git a/makefile.unix b/makefile.unix
index 1946186..750fcfa 100644
--- a/makefile.unix
+++ b/makefile.unix
@@ -76,12 +76,14 @@ $(LIBMAIN_S): $(OBJECTS)
 	$(AR) $(ARFLAGS) $@ $(OBJECTS)
 	$(RANLIB) $@
 
-#Build test suite
+#Build test_standalone suite
 test: $(LIBMAIN_S) demo/demo.c
 	$(CC) $(LTM_CFLAGS) $(LTM_LDFLAGS) demo/demo.c $(LIBMAIN_S) -DLTM_DEMO_TEST_VS_MTEST=0 -o $@
 	@echo "NOTICE: start the tests by: ./test"
 
-all: $(LIBMAIN_S) test
+test_standalone: test
+
+all: $(LIBMAIN_S) test_standalone
 
 #NOTE: this makefile works also on cygwin, thus we need to delete *.exe
 clean: