X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=Jamfile;h=99441d9b4dffe3fcd56012cfdc3c1671564cd7fd;hp=971e21da8f80a2727673d8e7893a2e36651fe98f;hb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;hpb=f7a440b9c7bb0c686dc2368c4ff53b20bf6371f8 diff --git a/Jamfile b/Jamfile index 971e21d..99441d9 100644 --- a/Jamfile +++ b/Jamfile @@ -1,4 +1,8 @@ SubDir PDCLIB_TOP ; +if $(PDCLIB_PLATFORM) { + SubInclude PDCLIB_TOP platform $(PDCLIB_PLATFORM) ; + SubDir PDCLIB_TOP ; +} PDCLibConfig ; PDCLIB_SOURCES = [ RecursiveGlob $(PDCLIB_TOP) : [ FDirName functions ] : *.c ] ; @@ -25,11 +29,12 @@ if ! $(PDCLIB_NO_TEST) { Object $(testfile).o : $(file) ; Object $(regtestfile).o : $(file) ; - MainFromObjects $(testfile) : $(testfile).o ; + MainFromObjects $(testfile) : $(testfile).o $(CRT0) ; MainFromObjects $(regtestfile) : $(regtestfile).o ; CCFLAGS on $(testfile).o += -DTEST $(PDCLIB_TEST_CCFLAGS) ; CCFLAGS on $(regtestfile).o += -DTEST -DREGTEST $(PDCLIB_REGTEST_CCFLAGS) ; + CCHDRS on $(regtestfile).o = [ FIncludes [ FDirName testing ] ] ; LINKFLAGS on $(testfile)$(SUFEXE) += $(PDCLIB_TEST_LINKFLAGS) ; LINKFLAGS on $(regtestfile)$(SUFEXE) += $(PDCLIB_REGTEST_LINKFLAGS) ;