252N/A#
252N/A# Copyright (c) 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# Use is subject to license terms.
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 demo_module_11.so
252N/A#
252N/A# usage:
252N/A# To point to a particular compiler, set CC.
252N/A# Example: setenv CC /usr/dist/share/forte_dev/bin/cc
252N/A# "make" : generate library for 64bit
252N/A# "make ARCH=32" : generate library for 32bit
252N/A# "make clean" : remove *.o , *.so
252N/A#
252N/A
252N/AARCH=64
252N/ACFLAGS_64=-g -m64 -I/usr/include/sma_snmp -I.
252N/ACFLAGS_32=-g -I/usr/include/sma_snmp -I.
252N/ACFLAGS=$(CFLAGS_$(ARCH))
252N/A
252N/ALDLIBS_64= -B dynamic -L /usr/lib/sparcv9 -l entity
252N/ALDLIBS_32= -B dynamic -l entity
252N/ALDLIBS=$(LDLIBS_$(ARCH))
252N/A
252N/APROG= demo_module_11.so
252N/ASRCS= MyTable.c
252N/AOBJS = $(SRCS:.c=.o)
252N/A
252N/Aall:$(PROG)
252N/A$(PROG): $(OBJS)
252N/A $(CC) $(CFLAGS) $(LDLIBS) -G -o $@ $(OBJS)
252N/A.c.o:
252N/A $(CC) $(CFLAGS) -g -o $@ -c $<
252N/A
252N/Aclean:
252N/A rm -f MyTable.o demo_module_11.so
252N/A
252N/A