cosmetix (added some __attribute__()s)
[k8jam.git] / src / Jamfile
blobc10ff27ef8cf04bec2763e46858058008c4d9971
1 SubDir TOP src ;
3 if $(USE_UNICODE) {
4   # use utf-8 in regexps
5   SubDirDefines RE9_UNICODE_CASE ;
9 # Do we know yacc?
10 if $(YACC) { code += jamgram.y ; } else { code += jamgram.c ; }
13 if $(YACC) && $(SUFEXE) = "" {
14   GenFile jamgram.y jamgramtab.h : $(TOP)/tools/yyacc jamgram.yy ;
18 # generate generators in build dir
19 OLD_LOCATE_BIN = $(LOCATE_BIN) ;
20 LOCATE_BIN = $(LOCATE_TARGET)/generators ;
22 # How to build the compiled in unicode table
23 if $(USE_UNICODE) {
24   Main unigen : unigen.c ;
25   GenFile re9_unicode_mapping.c : unigen $(TOP)/unidata/UnicodeData.txt ;
28 # How to build the compiled in jambase
29 Main mkjambase : mkjambase.c ;
31 LOCATE_BIN = $(OLD_LOCATE_BIN) ;
34 # The guts of the Jamfile: how to build Jam
35 Main jam : jam.c jambase.c ;
36 LinkLibraries jam : libjam.a ;
37 GenFile jambase.c : mkjambase $(TOP)/defaults/Jambase ;
38 IncFile mkjambase.c : [ BuildFileList "$(TOP)/defaults" : "Jam*" ] ;
41 Library libjam.a :
42   $(code)
43   bjprng.c
44   builtins.c
45   command.c
46   compile.c
47   execcmd.c
48   expand.c
49   filent.c
50   fileunix.c
51   hash.c
52   hcache.c
53   hdrmacro.c
54   headers.c
55   re9.c
56   jbunpack.c
57   kstrings.c
58   lists.c
59   make.c
60   make1.c
61   matchglob.c
62   newstr.c
63   option.c
64   parse.c
65   pathsys.c
66   progress.c
67   rules.c
68   scan.c
69   search.c
70   timestamp.c
71   variable.c