properly use test_standalone
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
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: