Print this page
6066 dis: support for System/370, System/390, and z/Architecture ELF bins


  40 # is specifically requested by architecture-specific Makefiles.
  41 TYPES=          library
  42 CURTYPE=        library
  43 
  44 COMDIR=         $(SRC)/lib/libdisasm/common
  45 
  46 #
  47 # Architecture-independent files
  48 #
  49 SRCS_common=            $(COMDIR)/libdisasm.c
  50 OBJECTS_common=         libdisasm.o
  51 
  52 #
  53 # Architecture-dependent disassembly files
  54 #
  55 SRCS_i386=              $(COMDIR)/dis_i386.c \
  56                         $(SRC)/common/dis/i386/dis_tables.c
  57 SRCS_sparc=             $(COMDIR)/dis_sparc.c \
  58                         $(COMDIR)/dis_sparc_fmt.c \
  59                         $(COMDIR)/dis_sparc_instr.c

  60 
  61 OBJECTS_i386=           dis_i386.o \
  62                         dis_tables.o
  63 OBJECTS_sparc=          dis_sparc.o \
  64                         dis_sparc_fmt.o \
  65                         dis_sparc_instr.o

  66 
  67 #
  68 # We build the regular shared library with support for all architectures.
  69 # The standalone version should only contain code for the native
  70 # architecture to reduce the memory footprint of kmdb.
  71 #
  72 OBJECTS_library=        $(OBJECTS_common) \
  73                         $(OBJECTS_i386) \
  74                         $(OBJECTS_sparc)

  75 OBJECTS_standalone=     $(OBJECTS_common) \
  76                         $(OBJECTS_$(MACH))
  77 OBJECTS=                $(OBJECTS_$(CURTYPE))
  78 
  79 include $(SRC)/lib/Makefile.lib
  80 
  81 SRCS_library=           $(SRCS_common) \
  82                         $(SRCS_i386) \
  83                         $(SRCS_sparc)

  84 SRCS_standalone=        $(SRCS_common) \
  85                         $(SRCS_$(MACH))
  86 SRCS=                   $(SRCS_$(CURTYPE))
  87 
  88 #
  89 # Used to verify that the standalone doesn't have any unexpected external
  90 # dependencies.
  91 #
  92 LINKTEST_OBJ = objs/linktest_stand.o
  93 
  94 CLOBBERFILES_standalone = $(LINKTEST_OBJ)
  95 CLOBBERFILES += $(CLOBBERFILES_$(CURTYPE))
  96 
  97 LIBS_standalone = $(STANDLIBRARY)
  98 LIBS_library = $(DYNLIB) $(LINTLIB)
  99 LIBS = $(LIBS_$(CURTYPE))
 100 
 101 MAPFILES =      $(COMDIR)/mapfile-vers
 102 
 103 LDLIBS +=       -lc




  40 # is specifically requested by architecture-specific Makefiles.
  41 TYPES=          library
  42 CURTYPE=        library
  43 
  44 COMDIR=         $(SRC)/lib/libdisasm/common
  45 
  46 #
  47 # Architecture-independent files
  48 #
  49 SRCS_common=            $(COMDIR)/libdisasm.c
  50 OBJECTS_common=         libdisasm.o
  51 
  52 #
  53 # Architecture-dependent disassembly files
  54 #
  55 SRCS_i386=              $(COMDIR)/dis_i386.c \
  56                         $(SRC)/common/dis/i386/dis_tables.c
  57 SRCS_sparc=             $(COMDIR)/dis_sparc.c \
  58                         $(COMDIR)/dis_sparc_fmt.c \
  59                         $(COMDIR)/dis_sparc_instr.c
  60 SRCS_s390x=             $(COMDIR)/dis_s390x.c
  61 
  62 OBJECTS_i386=           dis_i386.o \
  63                         dis_tables.o
  64 OBJECTS_sparc=          dis_sparc.o \
  65                         dis_sparc_fmt.o \
  66                         dis_sparc_instr.o
  67 OBJECTS_s390x=          dis_s390x.o
  68 
  69 #
  70 # We build the regular shared library with support for all architectures.
  71 # The standalone version should only contain code for the native
  72 # architecture to reduce the memory footprint of kmdb.
  73 #
  74 OBJECTS_library=        $(OBJECTS_common) \
  75                         $(OBJECTS_i386) \
  76                         $(OBJECTS_sparc) \
  77                         $(OBJECTS_s390x)
  78 OBJECTS_standalone=     $(OBJECTS_common) \
  79                         $(OBJECTS_$(MACH))
  80 OBJECTS=                $(OBJECTS_$(CURTYPE))
  81 
  82 include $(SRC)/lib/Makefile.lib
  83 
  84 SRCS_library=           $(SRCS_common) \
  85                         $(SRCS_i386) \
  86                         $(SRCS_sparc) \
  87                         $(SRCS_s390x)
  88 SRCS_standalone=        $(SRCS_common) \
  89                         $(SRCS_$(MACH))
  90 SRCS=                   $(SRCS_$(CURTYPE))
  91 
  92 #
  93 # Used to verify that the standalone doesn't have any unexpected external
  94 # dependencies.
  95 #
  96 LINKTEST_OBJ = objs/linktest_stand.o
  97 
  98 CLOBBERFILES_standalone = $(LINKTEST_OBJ)
  99 CLOBBERFILES += $(CLOBBERFILES_$(CURTYPE))
 100 
 101 LIBS_standalone = $(STANDLIBRARY)
 102 LIBS_library = $(DYNLIB) $(LINTLIB)
 103 LIBS = $(LIBS_$(CURTYPE))
 104 
 105 MAPFILES =      $(COMDIR)/mapfile-vers
 106 
 107 LDLIBS +=       -lc