Print this page
lib: move compat links from targetdirs to proper makefiles


  36                 libs32.o        map32.o         move32.o        phdr32.o \
  37                 relocate32.o    sections32.o    segments32.o    shdr32.o \
  38                 statistics32.o  support32.o     syms32.o        unused32.o \
  39                 util32.o        version32.o
  40 
  41 COMOBJS64 =     bindings64.o    cap64.o         dlfcns64.o      dynamic64.o \
  42                 elf64.o         entry64.o       files64.o       got64.o \
  43                 libs64.o        map64.o         move64.o        phdr64.o \
  44                 relocate64.o    sections64.o    segments64.o    shdr64.o \
  45                 statistics64.o  support64.o     syms64.o        unused64.o \
  46                 util64.o        version64.o
  47 
  48 BLTOBJ =        msg.o
  49 
  50 TOOLOBJ =       alist.o
  51 
  52 OBJECTS =       $(BLTOBJ) $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(TOOLOBJ)
  53 
  54 
  55 include         $(SRC)/lib/Makefile.lib

  56 include         $(SRC)/cmd/sgs/Makefile.com
  57 





  58 SRCDIR =        ../common
  59 
  60 CERRWARN +=     -_gcc=-Wno-unused-value
  61 CERRWARN +=     -_gcc=-Wno-uninitialized
  62 CERRWARN +=     -_gcc=-Wno-parentheses
  63 
  64 CPPFLAGS +=     -I$(SRCBASE)/lib/libc/inc
  65 DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
  66 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) -lc
  67 
  68 native :=       DYNFLAGS        += $(CONVLIBDIR)
  69 native :=       CPPFLAGS        += -DNATIVE_BUILD
  70 
  71 BLTDEFS =       msg.h
  72 BLTDATA =       msg.c
  73 BLTMESG =       $(SGSMSGDIR)/liblddbg
  74 
  75 BLTFILES =      $(BLTDEFS) $(BLTDATA) $(BLTMESG)
  76 
  77 SGSMSGCOM =     ../common/liblddbg.msg
  78 SGSMSGALL =     $(SGSMSGCOM)
  79 SGSMSGTARG =    $(SGSMSGCOM)
  80 SGSMSGFLAGS +=  -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n liblddbg_msg
  81 
  82 CHKSRCS =       $(COMOBJS32:%32.o=../common/%.c)
  83 
  84 LIBSRCS =       $(COMOBJS:%.o=../common/%.c) \
  85                 $(TOOLOBJ:%.o=$(SGSTOOLS)/common/%.c) $(BLTDATA)
  86 
  87 CLEANFILES +=   $(BLTFILES)
  88 CLOBBERFILES += $(DYNLIB) $(LIBLINKS)
  89 
  90 ROOTFS_DYNLIB = $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)


  36                 libs32.o        map32.o         move32.o        phdr32.o \
  37                 relocate32.o    sections32.o    segments32.o    shdr32.o \
  38                 statistics32.o  support32.o     syms32.o        unused32.o \
  39                 util32.o        version32.o
  40 
  41 COMOBJS64 =     bindings64.o    cap64.o         dlfcns64.o      dynamic64.o \
  42                 elf64.o         entry64.o       files64.o       got64.o \
  43                 libs64.o        map64.o         move64.o        phdr64.o \
  44                 relocate64.o    sections64.o    segments64.o    shdr64.o \
  45                 statistics64.o  support64.o     syms64.o        unused64.o \
  46                 util64.o        version64.o
  47 
  48 BLTOBJ =        msg.o
  49 
  50 TOOLOBJ =       alist.o
  51 
  52 OBJECTS =       $(BLTOBJ) $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(TOOLOBJ)
  53 
  54 
  55 include         $(SRC)/lib/Makefile.lib
  56 include         $(SRC)/lib/Makefile.rootfs
  57 include         $(SRC)/cmd/sgs/Makefile.com
  58 
  59 LIBS =          $(DYNLIB)
  60 
  61 COMPATLINKS =   /usr/lib/$(DYNLIB)
  62 COMPATLINKS64 = /usr/lib/$(MACH64)/$(DYNLIB)
  63 
  64 SRCDIR =        ../common
  65 
  66 CERRWARN +=     -_gcc=-Wno-unused-value
  67 CERRWARN +=     -_gcc=-Wno-uninitialized
  68 CERRWARN +=     -_gcc=-Wno-parentheses
  69 
  70 CPPFLAGS +=     -I$(SRCBASE)/lib/libc/inc
  71 DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
  72 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) -lc
  73 
  74 native :=       DYNFLAGS        += $(CONVLIBDIR)
  75 native :=       CPPFLAGS        += -DNATIVE_BUILD
  76 
  77 BLTDEFS =       msg.h
  78 BLTDATA =       msg.c
  79 BLTMESG =       $(SGSMSGDIR)/liblddbg
  80 
  81 BLTFILES =      $(BLTDEFS) $(BLTDATA) $(BLTMESG)
  82 
  83 SGSMSGCOM =     ../common/liblddbg.msg
  84 SGSMSGALL =     $(SGSMSGCOM)
  85 SGSMSGTARG =    $(SGSMSGCOM)
  86 SGSMSGFLAGS +=  -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n liblddbg_msg
  87 
  88 CHKSRCS =       $(COMOBJS32:%32.o=../common/%.c)
  89 
  90 LIBSRCS =       $(COMOBJS:%.o=../common/%.c) \
  91                 $(TOOLOBJ:%.o=$(SGSTOOLS)/common/%.c) $(BLTDATA)
  92 
  93 CLEANFILES +=   $(BLTFILES)
  94 CLOBBERFILES += $(DYNLIB) $(LIBLINKS)
  95