# Comments: Created by Michael Paquier, 2014-05-21
#
-
+ORIGDIR=.
# Include the list of tests
!INCLUDE tests
-SRCDIR=src
+SRCDIR=$(ORIGDIR)\src
OBJDIR=exe
EXEDIR=exe
!ENDIF
-runsuite.exe: runsuite.c
- cl runsuite.c $(CLFLAGS) $(LINKFLAGS)
+runsuite.exe: $(ORIGDIR)\runsuite.c
+ $(CC) $** $(CLFLAGS) $(LINKFLAGS)
-reset-db.exe: reset-db.c $(COMOBJ)
- cl reset-db.c $(CLFLAGS) $(LINKFLAGS) $(COMOBJ)
+reset-db.exe: $(ORIGDIR)\reset-db.c $(COMOBJ)
+ $(CC) $** $(CLFLAGS) $(LINKFLAGS)
# activate the above inference rule
.SUFFIXES: .out
RESDIR=results
installcheck: runsuite.exe $(TESTEXES) reset-db.exe
del regression.diffs
- .\reset-db < sampletables.sql
+ .\reset-db < $(ORIGDIR)\sampletables.sql
!IF !EXIST($(RESDIR))
mkdir $(RESDIR)
!ENDIF
- .\runsuite $(TESTS)
+ .\runsuite $(TESTS) --inputdir=$(ORIGDIR)
clean:
-del $(EXEDIR)\*.exe