]> pd.if.org Git - pdclib/blobdiff - Jamfile
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib] / Jamfile
diff --git a/Jamfile b/Jamfile
index 971e21da8f80a2727673d8e7893a2e36651fe98f..99441d9b4dffe3fcd56012cfdc3c1671564cd7fd 100644 (file)
--- a/Jamfile
+++ b/Jamfile
@@ -1,4 +1,8 @@
 SubDir PDCLIB_TOP ;\r
+if $(PDCLIB_PLATFORM) {\r
+    SubInclude PDCLIB_TOP platform $(PDCLIB_PLATFORM) ;\r
+    SubDir PDCLIB_TOP ;\r
+}\r
 PDCLibConfig ;\r
 \r
 PDCLIB_SOURCES = [ RecursiveGlob $(PDCLIB_TOP) : [ FDirName functions ] : *.c ] ;\r
@@ -25,11 +29,12 @@ if ! $(PDCLIB_NO_TEST) {
 \r
         Object $(testfile).o    : $(file) ;\r
         Object $(regtestfile).o : $(file) ;\r
-        MainFromObjects $(testfile)    : $(testfile).o ;\r
+        MainFromObjects $(testfile)    : $(testfile).o $(CRT0) ;\r
         MainFromObjects $(regtestfile) : $(regtestfile).o ;\r
         CCFLAGS on $(testfile).o += -DTEST $(PDCLIB_TEST_CCFLAGS) ;\r
         CCFLAGS on $(regtestfile).o += -DTEST -DREGTEST \r
                                        $(PDCLIB_REGTEST_CCFLAGS) ;\r
+        CCHDRS on $(regtestfile).o = [ FIncludes [ FDirName testing ] ] ;\r
 \r
         LINKFLAGS on $(testfile)$(SUFEXE) += $(PDCLIB_TEST_LINKFLAGS) ;\r
         LINKFLAGS on $(regtestfile)$(SUFEXE) += $(PDCLIB_REGTEST_LINKFLAGS) ;\r