561N/A#
561N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
943N/A#
561N/A# U.S. Government Rights - Commercial software. Government users are subject
561N/A# to the Sun Microsystems, Inc. standard license agreement and applicable
919N/A# provisions of the FAR and its supplements.
919N/A#
919N/A# Use is subject to license terms.
919N/A#
919N/A# This distribution may include materials developed by third parties. Sun,
919N/A# Sun Microsystems, the Sun logo and Solaris are trademarks or registered
919N/A# trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
919N/A#
919N/A#
919N/A
919N/A#
919N/A#
919N/A# Makefile to generate demo_module_7.so
919N/A#
919N/A# usage:
919N/A# "make" : generate library for 64bit / sparc
919N/A# "make ARCH=32" : generate library for 32bit / sparc
561N/A# "make ARCH=32 MACH=x86" : generate library for 32bit / x86
561N/A# "make clean" : remove *.o , *.so
561N/A#
561N/A
561N/A
561N/AARCH=64
561N/ALDFLAGS_64=-g -m64 -I.
837N/ALDFLAGS_32=-g -I.
561N/ALDFLAGS=$(LDFLAGS_$(ARCH))
911N/A
911N/ALDLIBS=
911N/A
911N/APROG= demo_module_7.so
561N/ASRCS= demo_module_7.c
561N/AOBJS = $(SRCS:.c=.o)
561N/A
561N/Aall:$(PROG)
561N/A$(PROG): $(OBJS)
561N/A $(CC) $(LDFLAGS) $(LDLIBS) -G -o $@ $(OBJS)
561N/A.c.o:
$(CC) $(LDFLAGS) -g -o $@ -c $<
clean:
rm -f *.o *.so