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
\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