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


  64 CERRWARN += -_gcc=-Wno-uninitialized
  65 
  66 FMLIBDIR=usr/lib/fm
  67 $(BUILD64)FMLIBDIR64=usr/lib/fm/$(MACH64)
  68 
  69 $(DYNLIB) := LDLIBS += -lumem -lnvpair -luutil -lsysevent \
  70         -L$(ROOT)/$(FMLIBDIR) -ltopo -lc
  71 
  72 $(BUILD64)$(DYNLIB) := LDLIBS64 += -lumem -lnvpair -luutil -lsysevent \
  73         -L$(ROOT)/$(FMLIBDIR64) -ltopo -lc
  74 
  75 LINTFLAGS = -msux
  76 LINTFLAGS64 = -msux -m64
  77 
  78 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
  79 $(LINTLIB) := LINTFLAGS = -nsvx
  80 $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
  81 
  82 CLEANFILES += ../common/fmev_errstring.c
  83 













  84 .KEEP_STATE:
  85 
  86 all: $(LIBS)
  87 
  88 lint: $(LINTLIB) lintcheck
  89 
  90 pics/%.o: ../$(MACH)/%.c
  91         $(COMPILE.c) -o $@ $<
  92         $(POST_PROCESS_O)
  93 
  94 ../common/fmev_errstring.c: ../common/mkerror.sh ../common/libfmevent.h
  95         sh ../common/mkerror.sh ../common/libfmevent.h > $@
  96 
  97 %.o: ../common/%.c
  98         $(COMPILE.c) -o $@ $<
  99         $(POST_PROCESS_O)
 100 
 101 include ../../../Makefile.targ
 102 include ../../Makefile.targ


  64 CERRWARN += -_gcc=-Wno-uninitialized
  65 
  66 FMLIBDIR=usr/lib/fm
  67 $(BUILD64)FMLIBDIR64=usr/lib/fm/$(MACH64)
  68 
  69 $(DYNLIB) := LDLIBS += -lumem -lnvpair -luutil -lsysevent \
  70         -L$(ROOT)/$(FMLIBDIR) -ltopo -lc
  71 
  72 $(BUILD64)$(DYNLIB) := LDLIBS64 += -lumem -lnvpair -luutil -lsysevent \
  73         -L$(ROOT)/$(FMLIBDIR64) -ltopo -lc
  74 
  75 LINTFLAGS = -msux
  76 LINTFLAGS64 = -msux -m64
  77 
  78 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
  79 $(LINTLIB) := LINTFLAGS = -nsvx
  80 $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
  81 
  82 CLEANFILES += ../common/fmev_errstring.c
  83 
  84 COMPATLINKS =   /usr/lib/fm/$(DYNLIB) /usr/lib/fm/$(LIBLINKS)
  85 COMPATLINKS64 = /usr/lib/fm/$(MACH64)/$(DYNLIB) \
  86         /usr/lib/fm/$(MACH64)/$(LIBLINKS)
  87 
  88 $(ROOT)/usr/lib/fm/libfmevent.so.1 := \
  89         COMPATLINKTARGET=../../../lib/fm/libfmevent.so.1
  90 $(ROOT)/usr/lib/fm/libfmevent.so := \
  91         COMPATLINKTARGET=../../../lib/fm/libfmevent.so.1
  92 $(ROOT)/usr/lib/fm/$(MACH64)/libfmevent.so.1:= \
  93         COMPATLINKTARGET=../../../../lib/fm/$(MACH64)/libfmevent.so.1
  94 $(ROOT)/usr/lib/fm/$(MACH64)/libfmevent.so:= \
  95         COMPATLINKTARGET=../../../../lib/fm/$(MACH64)/libfmevent.so.1
  96 
  97 .KEEP_STATE:
  98 
  99 all: $(LIBS)
 100 
 101 lint: $(LINTLIB) lintcheck
 102 
 103 pics/%.o: ../$(MACH)/%.c
 104         $(COMPILE.c) -o $@ $<
 105         $(POST_PROCESS_O)
 106 
 107 ../common/fmev_errstring.c: ../common/mkerror.sh ../common/libfmevent.h
 108         sh ../common/mkerror.sh ../common/libfmevent.h > $@
 109 
 110 %.o: ../common/%.c
 111         $(COMPILE.c) -o $@ $<
 112         $(POST_PROCESS_O)
 113 
 114 include ../../../Makefile.targ
 115 include ../../Makefile.targ