}
top_srcdir = $(TOP) ;
+# unset some stuff defined in Jambase
+LEX = ;
+
JAMCONFIG ?= $(top_builddir)/Jamconfig ;
include $(JAMCONFIG) ;
if ! $(JAMCONFIG_READ)
switch $(VARIANT) {
case optimize :
- CFLAGS += -O3 -g ;
- CXXFLAGS += -O3 -g ;
+ CFLAGS += -Wall -O3 -g ;
+ CXXFLAGS += -Wall -O3 -g ;
LIBS += -g ;
case debug :
- CFLAGS += -O0 -g3 -DDEBUG ;
- CXXFLAGS += -O0 -g3 -DDEBUG ;
+ CFLAGS += -Wall -W -Werror -O0 -g3 -DDEBUG ;
+ CXXFLAGS += -Wall -W -Werror -O0 -g3 -DDEBUG ;
LIBS += -g3 ;
case profile :
- CFLAGS += -O3 -g3 -pg ;
- CXXFLAGS += -O3 -g3 -pg ;
+ CFLAGS += -Wall -W -O3 -g3 -pg ;
+ CXXFLAGS += -Wall -W -O3 -g3 -pg ;
LIBS += -g3 -pg ;
case * :
EXIT "Invalid variant $(VARIANT) selected" ;
# Include Dirs
IncludeDir $(top_builddir) ; # for config.h
-IncludeDir lib src ;
+IncludeDir $(top_srcdir)/src ;
+
+actions quietly Append
+{
+ echo $(>) >> $(<) ;
+}
+
+rule DumpVar
+{
+ for FILE in $(>)
+ {
+ Append $(<) : $(FILE) ;
+ }
+ Depends $(<) : $(>) ;
+}
if $(XGETTEXT) != ""
{
actions XGetText
{
- $(XGETTEXT) $(XGETTEXT_FLAGS) --keyword='_:1' -o $(<) $(>)
+ $(XGETTEXT) $(XGETTEXT_FLAGS) -o $(<) -f $(>)
}
rule MakePot
{
if $(>) {
- XGetText $(<) : $(>) ;
- Depends $(<) : $(>) ;
+ DumpVar $(<).in : $(>) ;
+ XGetText $(<) : $(<).in ;
+ RmTemps $(<) : $(<).in ;
+ Depends $(<) : $(<).in ;
Depends all : $(<) ;
}
}
rule MakePot
{ }
}
-