]> pd.if.org Git - pdclib/blob - Config.jam
15834e1959116fc4e1dfd3eaf2b2fc6665cb8df5
[pdclib] / Config.jam
1 rule PDCLibTargetConfig { }
2 rule PDCLibTargetHeaders {
3     SubDirHdrs $(PDCLIB_TOP) platform win32 includes ;
4     SubDirHdrs $(PDCLIB_TOP) platform win32 internals ;
5
6     if $(PDCLIB_TOOLCHAIN) = "WATCOM" {
7         SubDirHdrs $(WATCOM) h ;
8     }
9 }
10
11 if $(PDCLIB_TOOLCHAIN) = "gcc" {
12     PDCLIB_TEST_LINKFLAGS += -nostdlib ;
13     PDCLIB_TEST_LINKLIBS += -lgcc -lkernel32 -lshell32 ;
14 } else if $(PDCLIB_TOOLCHAIN) = "WATCOM" {
15     PDCLIB_TEST_LINKFLAGS = "-\"option start=_mainCRTStartup\"" ;
16     PDCLIB_TEST_LINKLIBS = 
17         $(WATCOM)\\lib386\\nt\\kernel32.lib 
18         $(WATCOM)\\lib386\\nt\\shell32.lib
19         $(WATCOM)\\lib386\\nt\\clib3r.lib ;
20     PDCLIB_REGTEST_CCHDRS = [ FIncludes $(WATCOM)\\h ] ;
21 } else {
22     ECHO Win32 doesn't support toolchain $(PDCLIB_TOOLCHAIN) ;
23     EXIT ;
24 }
25
26 PDCLIB_OPTIONS = 
27     tss_errno 
28     basecodecs 
29     c_locale 
30     ;
31
32 CRT0 = [ FDirName platform win32 crt0$(SUFOBJ) ] ;