Print this page
9884 cw(1) should use -fpic rather than -Kpic


 323 
 324 CPPFLAGS= -Dsparc \
 325         -I. -Iinc -I../inc/include -I../inc/include/sys $(CPPFLAGS.master)
 326 ASFLAGS=  -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
 327 LDLIBS= -t -R/usr/ucblib -L$(ROOT)/usr/ucblib $(LDLIBS.lib) \
 328         -lucb -lc -lnsl -lsocket
 329 
 330 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 331 CERRWARN += -_gcc=-Wno-char-subscripts
 332 CERRWARN += -_gcc=-Wno-extra
 333 CERRWARN += -_gcc=-Wno-parentheses
 334 CERRWARN += -_gcc=-Wno-uninitialized
 335 CERRWARN += -_gcc=-Wno-unused
 336 CERRWARN += -_gcc=-Wno-switch
 337 CERRWARN += -_gcc=-Wno-address
 338 
 339 # SONAME is used by DYNFLAGS
 340 $(DYNLIB4X) :=  SONAME = $(DYNLIB4X)
 341 $(DYNLIBS5) :=  SONAME = $(DYNLIBS5)
 342 
 343 pics/%.o:= ASFLAGS += -K pic -DPIC
 344 pics/%.o:= CPPFLAGS += -K pic -DPIC
 345 s5pics/%.o:= ASFLAGS += -K pic -DPIC
 346 DYNFLAGS += $(ZINTERPOSE)
 347 
 348 BUILD.s=  $(AS) $(ASFLAGS) $< -o $@
 349 
 350 # libbc method of building an archive
 351 BUILD.AR= $(RM) $@ ; \
 352         $(AR) q $@ $(OBJECTS:%=$(DIR)/%)
 353 
 354 # the TXTS macro is used for NSE bootstrapping.
 355 TXTS=   inc/SYS.h inc/PIC.h inc/machine/asm_linkage.h 
 356 
 357 LIBS = $(DYNLIB4X) $(DYNLIBS5)
 358 
 359 OBJECTS= $(COMPATCOM) $(COMPAT4.1) $(CRTSPARC) $(GENCOM) \
 360 $(GENCOMSPARC) $(GEN4.2) $(STDIOCOM) $(STDIO4.2) \
 361 $(INET) $(NET) $(NETSPARC) $(YP) \
 362 $(SYSCOM) $(SYSCOMSPARC) $(SYS4.2) 
 363 
 364 #
 365 # Since this library is strictly for binary compability with ancient
 366 # applications, we deactivate CTF to avoid kicking up dust.
 367 #
 368 CTFCONVERT_POST = :
 369 CTFMERGE_LIB = :
 370 
 371 S5OBJECTS= $(COMPATCOM) $(COMPATSYS5) $(CRTSPARC) $(GENCOM) \
 372 $(GENCOMSPARC) $(GENSYS5) $(STDIOCOM) $(STDIOSYS5) \
 373 $(SYSCOM) $(SYSCOMSPARC) $(SYSSYS5) $(SSYS5SPARC) \
 374 $(INET) $(NET) $(NETSPARC) $(YP)
 375 
 376 S5PICOBJS=      $(S5OBJECTS:%=s5pics/%)
 377 
 378 CLEANFILES= ../libc/yp/ypupdate_prot.c ../inc/include/rpcsvc/ypupdate_prot.h \
 379         ../libc/compat/sys5/epoch.h \
 380         $(S5PICOBJS)
 381 CLOBBERFILES= ../libc/compat/sys5/mkepoch
 382 
 383 # conditional assignments
 384 s5pics/%.o:= CPPFLAGS = -Dsparc -DS5EMUL -K pic -DPIC -I. -Iinc \
 385         -I../inc/5include -I../inc/include -I../inc/include/sys \
 386         $(CPPFLAGS.master)
 387 
 388 s5pics/%.o := CFLAGS += -xregs=no%appl
 389 pics/%.o := CFLAGS += -xregs=no%appl
 390 
 391 $(DYNLIB4X):= DIR = pics
 392 $(DYNLIBS5):= DIR = s5pics
 393 
 394 .KEEP_STATE:
 395 
 396 # Declare that all .o's can be made in parallel.
 397 .PARALLEL:      $(PICS) $(S5PICOBJS)
 398 
 399 all: $(TXTS) $(LIBS)
 400 
 401 $(DYNLIB4X): pics .WAIT $(PICS)
 402         $(CC) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
 403         $(POST_PROCESS_SO)
 404 




 323 
 324 CPPFLAGS= -Dsparc \
 325         -I. -Iinc -I../inc/include -I../inc/include/sys $(CPPFLAGS.master)
 326 ASFLAGS=  -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
 327 LDLIBS= -t -R/usr/ucblib -L$(ROOT)/usr/ucblib $(LDLIBS.lib) \
 328         -lucb -lc -lnsl -lsocket
 329 
 330 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 331 CERRWARN += -_gcc=-Wno-char-subscripts
 332 CERRWARN += -_gcc=-Wno-extra
 333 CERRWARN += -_gcc=-Wno-parentheses
 334 CERRWARN += -_gcc=-Wno-uninitialized
 335 CERRWARN += -_gcc=-Wno-unused
 336 CERRWARN += -_gcc=-Wno-switch
 337 CERRWARN += -_gcc=-Wno-address
 338 
 339 # SONAME is used by DYNFLAGS
 340 $(DYNLIB4X) :=  SONAME = $(DYNLIB4X)
 341 $(DYNLIBS5) :=  SONAME = $(DYNLIBS5)
 342 
 343 pics/%.o:= ASFLAGS += $(AS_PICFLAGS) -DPIC
 344 pics/%.o:= CPPFLAGS += $(C_PICFLAGS) -DPIC
 345 s5pics/%.o:= ASFLAGS += $(AS_PICFLAGS) -DPIC
 346 DYNFLAGS += $(ZINTERPOSE)
 347 
 348 BUILD.s=  $(AS) $(ASFLAGS) $< -o $@
 349 
 350 # libbc method of building an archive
 351 BUILD.AR= $(RM) $@ ; \
 352         $(AR) q $@ $(OBJECTS:%=$(DIR)/%)
 353 
 354 # the TXTS macro is used for NSE bootstrapping.
 355 TXTS=   inc/SYS.h inc/PIC.h inc/machine/asm_linkage.h
 356 
 357 LIBS = $(DYNLIB4X) $(DYNLIBS5)
 358 
 359 OBJECTS= $(COMPATCOM) $(COMPAT4.1) $(CRTSPARC) $(GENCOM) \
 360 $(GENCOMSPARC) $(GEN4.2) $(STDIOCOM) $(STDIO4.2) \
 361 $(INET) $(NET) $(NETSPARC) $(YP) \
 362 $(SYSCOM) $(SYSCOMSPARC) $(SYS4.2)
 363 
 364 #
 365 # Since this library is strictly for binary compability with ancient
 366 # applications, we deactivate CTF to avoid kicking up dust.
 367 #
 368 CTFCONVERT_POST = :
 369 CTFMERGE_LIB = :
 370 
 371 S5OBJECTS= $(COMPATCOM) $(COMPATSYS5) $(CRTSPARC) $(GENCOM) \
 372 $(GENCOMSPARC) $(GENSYS5) $(STDIOCOM) $(STDIOSYS5) \
 373 $(SYSCOM) $(SYSCOMSPARC) $(SYSSYS5) $(SSYS5SPARC) \
 374 $(INET) $(NET) $(NETSPARC) $(YP)
 375 
 376 S5PICOBJS=      $(S5OBJECTS:%=s5pics/%)
 377 
 378 CLEANFILES= ../libc/yp/ypupdate_prot.c ../inc/include/rpcsvc/ypupdate_prot.h \
 379         ../libc/compat/sys5/epoch.h \
 380         $(S5PICOBJS)
 381 CLOBBERFILES= ../libc/compat/sys5/mkepoch
 382 
 383 # conditional assignments
 384 s5pics/%.o:= CPPFLAGS = -Dsparc -DS5EMUL $(C_PICFLAGS) -DPIC -I. -Iinc \
 385         -I../inc/5include -I../inc/include -I../inc/include/sys \
 386         $(CPPFLAGS.master)
 387 
 388 s5pics/%.o := CFLAGS += -xregs=no%appl
 389 pics/%.o := CFLAGS += -xregs=no%appl
 390 
 391 $(DYNLIB4X):= DIR = pics
 392 $(DYNLIBS5):= DIR = s5pics
 393 
 394 .KEEP_STATE:
 395 
 396 # Declare that all .o's can be made in parallel.
 397 .PARALLEL:      $(PICS) $(S5PICOBJS)
 398 
 399 all: $(TXTS) $(LIBS)
 400 
 401 $(DYNLIB4X): pics .WAIT $(PICS)
 402         $(CC) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
 403         $(POST_PROCESS_SO)
 404