diff options
-rw-r--r-- | windows/Makefile.vc | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/windows/Makefile.vc b/windows/Makefile.vc index b7a4336..21db6df 100644 --- a/windows/Makefile.vc +++ b/windows/Makefile.vc @@ -144,6 +144,17 @@ TEST_MK=$(TDR)Maketests.vc TEST_OBJS=$(TEST_EXES:tests=obj) TEST_OBJS=$(TEST_OBJS:exe=obj) +# create buil dir and test exe dir. test ext dir may not be called but easier like this +# so we can include the gentest file +!IF [if not exist $(BUILD_DIR) mkdir $(BUILD_DIR)] +!ENDIF + +!IF [if not exist $(TDR) mkdir $(TDR)] +!ENDIF + +!IF [$(MAKEDIR)\windows\gentest.bat tests $(BUILD_DIR) "$(TEST_CFLAGS)" "$(TEST_LDFLAGS)" $(CC) $(LD) "$(TEST_MK)" "$(TEST_LIST)"] +!ENDIF + # pseudotargets build_libs: make_dirs $(TARGETDLL) $(TARGETLIB) all: build_libs build_tests @@ -170,8 +181,8 @@ make_dirs: @echo #define HAVE_INTTYPES_H>> $(GD_CONFIG_H) run_tests: pretest - @cd $(TDR) - @$(MAKEDIR)\windows\run_tests + @cd $(TDR) + @$(MAKEDIR)\windows\run_tests # libgd $(LIBGD_OBJ_DIR): @@ -211,5 +222,5 @@ $(SDR)readdir.obj: $(TARGETDLL) tests\gdtest\readdir.c @$(CC) $(CFLAGS) /c tests\gdtest\readdir.c /Fo$(SDR)readdir.obj pretest: $(TARGETDLL) - if not exist $(TDR) mkdir $(TDR) - copy $(TARGETDLL) $(TDR)$(GD_DLL)
\ No newline at end of file + if not exist $(TDR) mkdir $(TDR) + copy $(TARGETDLL) $(TDR)$(GD_DLL)
\ No newline at end of file |