252N/A#
252N/A# Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
252N/A#
252N/A# U.S. Government Rights - Commercial software. Government users are subject
252N/A# to the Sun Microsystems, Inc. standard license agreement and applicable
252N/A# provisions of the FAR and its supplements.
252N/A#
252N/A# This distribution may include materials developed by third parties. Sun,
252N/A# Sun Microsystems, the Sun logo and Solaris are trademarks or registered
252N/A# trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
252N/A#
252N/A#
252N/A
252N/A#
252N/A#
252N/A# Makefile to generate libentity.so
252N/A#
252N/A# usage:
252N/A# "make" : generate library for 64bit / sparc
252N/A# "make ARCH=32" : generate library for 32bit / sparc
252N/A# "make ARCH=32 MACH=x86" : generate library for 32bit / x86
252N/A# "make ARCH=amd64" : generate 64bit AMD64 libraries
252N/A# "make clean" : remove *.o , *.so
252N/A#
252N/A
252N/AMARCH=$(ARCH)
252N/ALDFLAGS_sparcv9=-m64 -I$(ROOT)$(CFGPREFIX)/include -I.
252N/ALDFLAGS_32=-I$(ROOT)$(CFGPREFIX)/include -I.
252N/ALDFLAGS_amd64=-m64 -I$(ROOT)$(CFGPREFIX)/include -I.
252N/ALDFLAGS=$(LDFLAGS_$(MARCH))
252N/A
252N/ALDLIBS=
252N/A
252N/ACFLAGS_32=-Kpic
252N/ACFLAGS_sparcv9=-Kpic
252N/ACFLAGS_amd64=-Kpic
252N/ACFLAGS=$(CFLAGS_$(MARCH))
252N/A
252N/APROG= libentity.so
252N/ASRCS= entPhysicalTable.c entLPMappingTable.c entPhysicalContainsTable.c \
252N/A entLogicalTable.c entAliasMappingTable.c entLastChangeTime.c entity.c
252N/A
252N/AOBJS = $(SRCS:.c=.o)
252N/A
252N/AHEADERS= \
252N/A entAliasMappingTable.h \
252N/A entLogicalTable.h \
252N/A stdhdr.h \
252N/A entLPMappingTable.h \
252N/A entPhysicalContainsTable.h \
252N/A entLastChangeTime.h \
252N/A entPhysicalTable.h
252N/A
252N/A
252N/Aall:$(PROG)
252N/A$(PROG): $(OBJS)
252N/A $(CC) $(LDFLAGS) $(LDLIBS) -G -o $@ $(OBJS)
252N/A.c.o:
252N/A $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
252N/A
252N/Aclean:
252N/A rm -f entPhysicalTable.o entLPMappingTable.o \
252N/A entPhysicalContainsTable.o entLogicalTable.o \
252N/A entAliasMappingTable.o entLastChangeTime.o entity.o libentity.so
252N/A
252N/Ainstall:
252N/A if test "$(ARCH)" = "sparcv9" ; then \
252N/A cp $(PROG) $(ROOT)/$(CFGLIB64); \
252N/A elif test "$(ARCH)" = "32" ; then \
252N/A cp $(PROG) $(ROOT)/$(CFGLIB); \
252N/A elif test "$(ARCH)" = "amd64" ; then \
252N/A cp $(PROG) $(ROOT)/$(CFGLIB64); \
252N/A fi
252N/A
252N/A#all
252N/A#cp $(PROG) /usr/local/lib