Resolve many build warnings

This patch fixes many warnings from the beginning of the build up to
and including the depend stage. Nearly all warnings should be gone
even with -Wall.
This commit is contained in:
Ulrich Wilkens
2014-09-23 23:16:35 +02:00
committed by Jon Trulson
parent 2bf29e5d63
commit 42e891d9e7
125 changed files with 1926 additions and 1440 deletions

View File

@@ -24,7 +24,7 @@ XCOMM (c) Copyright 1996 Hitachi.
* So, when 'all' is made in this directory, redo make includes/depend.
* An imake hack no doubt, but it is necessary for now.
*/
all:: generated_includes depend
all:: generated_includes abdepend
#include "../ab.tmpl"
#include "../ab.rules"
@@ -174,6 +174,18 @@ SOURCES.msg = \
../libABobjXm/libABobjXm.msg \
../libABil/libABil.msg
AB_MAKEFILES = \
Makefile.aix \
Makefile.hpux \
Makefile.sunos \
Makefile.osf1 \
Makefile.uxp \
Makefile.unixware \
Makefile.linux \
Makefile.freebsd \
Makefile.netbsd \
Makefile.openbsd
#ifndef UngeneratedSource
#define UngeneratedSource(macro, suffix) @@\
macro = \ @@\
@@ -240,8 +252,8 @@ Concat(x_util,suffix)
UngeneratedSource(NONTGTS.c,.c)
UngeneratedSource(NONTGTS.o,.o)
SRCS = $(TARGETS.c) $(TARGETS.c.stubs) $(NONTGTS.c)
OBJS = $(TARGETS.o) $(TARGETS.o.stubs) $(NONTGTS.o)
SRCS2 = $(TARGETS.c) $(TARGETS.c.stubs) $(NONTGTS.c)
OBJS2 = $(TARGETS.o) $(TARGETS.o.stubs) $(NONTGTS.o)
SYS_LIBRARIES = -lm $(ICONVSYSLIB) $(DYNLIBSYSLIB) $(REGEXSYSLIB)
@@ -276,7 +288,10 @@ LOCAL_LIBRARIES = ../libABil/libABil.a ../libABobjXm/libABobjXm.a \
$(TTLIB) $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XLIB) \
$(UTILLIB)
$(OBJS): $(SOURCES.h)
/* dtcodegen needs path to catalogfile */
DTCODEGENCAT = NLSPATH=$(CDESRC)/dtappbuilder/src/abmf/dtcodegen.cat
$(OBJS2): $(SOURCES.h)
XCOMM dtcodegen wants to rewrite some files, so we make copies for it.
dtbuilder.msg: dtbuilder.msg.src
@@ -286,7 +301,17 @@ dtbuilder.c: dtbuilder.c.src
includes:: dtbuilder.msg dtbuilder.c
ComplexProgramTarget(dtbuilder)
all:: $(PROGRAMS)
ComplexProgramTarget_2(dtbuilder,$(LOCAL_LIBRARIES),)
abdepend:: DependFileName
DependFileName::
-RunProgram(DEPEND,$(DEPENDFLAGS) $(ALLDEFINES) $(DEPEND_DEFINES) $(SRCS2)) > $@
clean::
RemoveFile(ProgramTargetName(PROGRAMS))
AbMessageCatalogTarget(dtbuilder)
@@ -294,7 +319,7 @@ XCOMM Try to replace the original dtbuilder.msg.src file if necessary.
all:: dtbuilder dtbuilder.cat
clean::
$(RM) $(TARGETS.h) $(TARGETS.c) .dtcodegen.log *.delta dtbuilder.c dtbuilder.msg
$(RM) $(TARGETS.h) $(TARGETS.c) $(AB_MAKEFILES) .dtcodegen.log *.delta dtbuilder.c dtbuilder.msg
CppSourceFile(Dtbuilder,Dtbuilder.src,$(LOCAL_CPP_DEFINES),)