cosmetix in 'silencer'
[k8jam.git] / Jamrules
blobc3ffb336e5736b610c431e2a6c045e34b2ac8333
1 if ! $(THIS_IS_K8JAM) { Exit "I WANT K8JAM!" ; }
2 # Jamfile to build Jam (a make(1)-like program)
3 # There are no user-serviceable parts in this file.
4 VERSION = k8jam-2.5.14 ;
7 if ! $(DEBUG) {
8   DEFINES += MKJAMBASE_COMPACT ;
10 #DEFINES += OPT_HEADER_CACHE_EXT ;
11 if $(DIET) { DEFINES += USE_DIETLIBC ; }
14 set-profile ;
15 set-target-locations ;
16 gcc-suggest-attrs ;
19 #if ! $(PREFIX) { PREFIX = /usr/local ; }
21 include $(TOP)/Jamrules.configure ;
24 # note that we use the target directory 'bin.unix' to ensure that
25 # 'make install' and 'make uninstall' work correctly
26 if $(UNIX) {
27   #if ! $(LOCATE_TARGET) { LOCATE_TARGET = bin.unix/obj ; }
28   ALL_LOCATE_BIN = $(TOP)/bin.unix ;
29 } else {
30   #if ! $(LOCATE_TARGET) { LOCATE_TARGET = bin.$(OSFULL[1]:L)$(PATH_SEPARATOR)obj ; }
31   ALL_LOCATE_BIN = $(TOP)$(PATH_SEPARATOR)bin.$(OSFULL[1]:L) ;
34 # Leave generated source in current directory; it would be nice to use
35 # these lines below to build the source into the platform-specific
36 # directory, but getting scan.c to include the right jambase.h is
37 # hard: with ""'s, it always gets the bootstrap version; with <>'s,
38 # it won't find the bootstrap version.
40 # SEARCH_SOURCE ?= $(LOCATE_TARGET) $(DOT) ;
41 # LOCATE_SOURCE ?= $(LOCATE_TARGET) ;
43 # For some really stupid reason, classic Jam doesn't define NT
44 # when compiling with Mingw, but the variable MINGW instead..
46 if ! $(NT) && $(MINGW) {
47   NT = 1 ;
48   JAM_TOOLSET = MINGW ;
51 if $(UNIX) && $(OS) = CYGWIN {
52   CCFLAGS += -D__cygwin__ ;
56 # We have to signal jam.h for these
57 if $(OS) = NT {
58   switch $(JAM_TOOLSET) {
59     case MINGW       : CCFLAGS += -DNT ;
60     case LCC         : CCFLAGS += -DNT ;
61     case DIGITALMARS : CCFLAGS += -DNT ;
62     case *           : CCFLAGS += /DNT ;
63   }
67 if ! $(DEBUG) && ! $(VALGRIND) {
68   if $(UNIX) {
69     actions Strip {
70       strip -s $(1)
71     }
72   }
73   # Strip the Jam executable on Mingw
74   if $(JAM_TOOLSET) = MINGW {
75     actions Strip {
76       strip $(1)
77     }
78   }
82 # installing
83 #if $(UNIX) {
84   #if $(DESTDIR) { INSTALLDIR_PREFIX = $(DESTDIR)$(PREFIX) ; } else { INSTALLDIR_PREFIX = $(PREFIX) ; }
85   #INSTALLDIR_BIN = $(INSTALLDIR_PREFIX)/bin ;
86   #INSTALLDIR_MAN = $(INSTALLDIR_PREFIX)/man ;
87   #INSTALLDIR_DOCS = $(INSTALLDIR_PREFIX)/share/doc/$(VERSION) ;
91 # this was needed 'cause (LOCATE_SOURCE) was targeted there
92 #HDRS += $(ALL_LOCATE_TARGET)/src ;
95 actions quietly AShowHelp {
96   echo "usage: jam [target] [flags]"
97   echo "targets:"
98   echo "  all/<empty>  -- build"
99   #echo "  push         -- push to external git repository"
102 #InstallBin bin : jam ;
104 softinclude $(TOP)/Jamrules.local ;
105 softinclude $(TOP)/Jamrules.push ;
106 softinclude $(TOP)/Jamrules.install ;