diff -r f527656d334f -r ee0fb1eabcbf components/net-snmp/sun/sdk/demo/demo_module_9/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/net-snmp/sun/sdk/demo/demo_module_9/Makefile Fri May 20 12:17:45 2011 +0530 @@ -0,0 +1,48 @@ +# +# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# +# U.S. Government Rights - Commercial software. Government users are subject +# to the Sun Microsystems, Inc. standard license agreement and applicable +# provisions of the FAR and its supplements. +# +# Use is subject to license terms. +# +# This distribution may include materials developed by third parties. Sun, +# Sun Microsystems, the Sun logo and Solaris are trademarks or registered +# trademarks of Sun Microsystems, Inc. in the U.S. and other countries. +# +# + +# +# +# Makefile to generate demo_module_9.so +# +# usage: +# "make" : generate library for 64bit / sparc +# "make ARCH=32" : generate library for 32bit / sparc +# "make ARCH=32 MACH=x86" : generate library for 32bit / x86 +# "make clean" : remove *.o , *.so +# + + +ARCH=64 +LDFLAGS_64=-g -m64 -I. +LDFLAGS_32=-g -I. +LDFLAGS=$(LDFLAGS_$(ARCH)) + +LDLIBS= + +PROG= demo_module_9.so +SRCS= demo_module_9.c +OBJS = $(SRCS:.c=.o) + +all:$(PROG) +$(PROG): $(OBJS) + $(CC) $(LDFLAGS) $(LDLIBS) -G -o $@ $(OBJS) +.c.o: + $(CC) $(LDFLAGS) -g -o $@ -c $< + +clean: + rm -f *.o *.so + +