fixed pkg-config rule
[k8jam.git] / src / Jamfile
blob0121c16aeecfd27bac3d34030f33f267caed9cb1
1 SubDir TOP src ;
4 # Do we know yacc?
5 if $(YACC) { code += jamgram.y ; } else { code += jamgram.c ; }
8 if $(YACC) && $(SUFEXE) = "" {
9   GenFile jamgram.y jamgramtab.h : $(TOP)/tools/yyacc jamgram.yy ;
12 # How to build the compiled in jambase
13 Main mkjambase : mkjambase.c ;
15 # How to build the compiled in unicode table
16 Main unigen : unigen.c ;
18 # The guts of the Jamfile: how to build Jam
19 Main jam : jam.c jambase.c ;
20 LinkLibraries jam : libjam.a ;
21 GenFile jambase.c : mkjambase $(TOP)/defaults/Jambase ;
22 IncFile mkjambase.c :
23   [ BuildFileList "$(TOP)/defaults" : "Jam*" ]
25 GenFile hsregexp_unicode_mapping.c : unigen $(TOP)/unidata/UnicodeData.txt ;
27 ###if $(UNIX) {
28 ###  Strip mkjambase ;
29 ###  Strip jam ;
30 ###}
33 # Strip the Jam executable on Mingw
34 ###if $(JAM_TOOLSET) = MINGW {
35 ###  Strip jam$(SUFEXE) ;
36 ###}
39 Library libjam.a :
40   $(code)
41   builtins.c
42   command.c
43   compile.c
44   execcmd.c
45   expand.c
46   filent.c
47   fileunix.c
48   hash.c
49   hcache.c
50   hdrmacro.c
51   headers.c
52   hsregexp.c
53   kstrings.c
54   lists.c
55   make.c
56   make1.c
57   matchglob.c
58   newstr.c
59   option.c
60   parse.c
61   pathsys.c
62   progress.c
63   rules.c
64   scan.c
65   search.c
66   timestamp.c
67   variable.c
69 aliasbreaks =
70   #newstr.c
71   #rules.c
72   #timestamp.c
73   #variable.c
74   #hdrmacro.c
77 if $(THIS_IS_K8JAM) {
78   ObjectNoAliasing $(aliasbreaks) ;
79 } else {
80   ObjectCcFlags $(aliasbreaks) : -fno-strict-aliasing ;
84 # installing
85 if $(UNIX) {
86   InstallBin $(INSTALLDIR_BIN) : jam$(SUFEXE) ;
87   #InstallBin $(INSTALLDIR_BIN) : mkjambase$(SUFEXE) ;
88   SubInclude TOP doc ;