Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


 320 
 321 # the bcp libraries go in /usr/4lib. override ROOTLIBDIR from ../../Makefile.lib
 322 # and save it so we can find the libraries with which to link
 323 ROOTLIBDIR=     $(ROOT)/usr/4lib
 324 
 325 CPPFLAGS= -Dsparc \
 326         -I. -Iinc -I../inc/include -I../inc/include/sys $(CPPFLAGS.master)
 327 #
 328 # contents of CPPFLAGS copied to ASFLAGS so it's immune to CPPFLAGS
 329 # being changed later
 330 #
 331 ASFLAGS=  -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM -Dsparc \
 332         -I. -Iinc -I../inc/include -I../inc/include/sys $(CPPFLAGS.master)
 333 LDLIBS= -t -R/usr/ucblib -L$(ROOT)/usr/ucblib $(LDLIBS.lib) \
 334         -lucb -lc -lnsl -lsocket
 335 
 336 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 337 CERRWARN += -_gcc=-Wno-char-subscripts
 338 CERRWARN += -_gcc=-Wno-extra
 339 CERRWARN += -_gcc=-Wno-parentheses
 340 CERRWARN += -_gcc=-Wno-uninitialized
 341 CERRWARN += -_gcc=-Wno-unused
 342 CERRWARN += -_gcc=-Wno-switch
 343 CERRWARN += -_gcc=-Wno-address
 344 
 345 # SONAME is used by DYNFLAGS
 346 $(DYNLIB4X) :=  SONAME = $(DYNLIB4X)
 347 $(DYNLIBS5) :=  SONAME = $(DYNLIBS5)
 348 
 349 pics/%.o:= ASFLAGS += $(AS_PICFLAGS) -DPIC
 350 pics/%.o:= CPPFLAGS += $(C_PICFLAGS) -DPIC
 351 DYNFLAGS += $(ZINTERPOSE)
 352 
 353 BUILD.s=  $(AS) $(ASFLAGS) $< -o $@
 354 
 355 # libbc method of building an archive
 356 BUILD.AR= $(RM) $@ ; \
 357         $(AR) q $@ $(OBJECTS:%=$(DIR)/%)
 358 
 359 # the TXTS macro is used for NSE bootstrapping.
 360 TXTS=   inc/SYS.h inc/PIC.h inc/machine/asm_linkage.h




 320 
 321 # the bcp libraries go in /usr/4lib. override ROOTLIBDIR from ../../Makefile.lib
 322 # and save it so we can find the libraries with which to link
 323 ROOTLIBDIR=     $(ROOT)/usr/4lib
 324 
 325 CPPFLAGS= -Dsparc \
 326         -I. -Iinc -I../inc/include -I../inc/include/sys $(CPPFLAGS.master)
 327 #
 328 # contents of CPPFLAGS copied to ASFLAGS so it's immune to CPPFLAGS
 329 # being changed later
 330 #
 331 ASFLAGS=  -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM -Dsparc \
 332         -I. -Iinc -I../inc/include -I../inc/include/sys $(CPPFLAGS.master)
 333 LDLIBS= -t -R/usr/ucblib -L$(ROOT)/usr/ucblib $(LDLIBS.lib) \
 334         -lucb -lc -lnsl -lsocket
 335 
 336 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 337 CERRWARN += -_gcc=-Wno-char-subscripts
 338 CERRWARN += -_gcc=-Wno-extra
 339 CERRWARN += -_gcc=-Wno-parentheses
 340 CERRWARN += $(CNOWARN_UNINIT)
 341 CERRWARN += -_gcc=-Wno-unused
 342 CERRWARN += -_gcc=-Wno-switch
 343 CERRWARN += -_gcc=-Wno-address
 344 
 345 # SONAME is used by DYNFLAGS
 346 $(DYNLIB4X) :=  SONAME = $(DYNLIB4X)
 347 $(DYNLIBS5) :=  SONAME = $(DYNLIBS5)
 348 
 349 pics/%.o:= ASFLAGS += $(AS_PICFLAGS) -DPIC
 350 pics/%.o:= CPPFLAGS += $(C_PICFLAGS) -DPIC
 351 DYNFLAGS += $(ZINTERPOSE)
 352 
 353 BUILD.s=  $(AS) $(ASFLAGS) $< -o $@
 354 
 355 # libbc method of building an archive
 356 BUILD.AR= $(RM) $@ ; \
 357         $(AR) q $@ $(OBJECTS:%=$(DIR)/%)
 358 
 359 # the TXTS macro is used for NSE bootstrapping.
 360 TXTS=   inc/SYS.h inc/PIC.h inc/machine/asm_linkage.h