2 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4 # U.S. Government Rights - Commercial software. Government users are subject
5 # to the Sun Microsystems, Inc. standard license agreement and applicable
6 # provisions of the FAR and its supplements.
8 # Use is subject to license terms.
10 # This distribution may include materials developed by third parties. Sun,
11 # Sun Microsystems, the Sun logo and Solaris are trademarks or registered
12 # trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
18 # Makefile to generate demo_module_1.so
21 # setenv CC /usr/bin/cc (or correct path)
22 # "make" : generate library for 64bit
23 # "make ARCH=32" : generate library for 32bit
24 # "make clean" : remove *.o , *.so
28 LDFLAGS_64
=-g
-m64
-I.
30 LDFLAGS
=$(LDFLAGS_
$(ARCH
))
34 PROG
= demo_module_1.so
40 $(CC
) $(LDFLAGS
) $(LDLIBS
) -G
-o
$@
$(OBJS
)
42 @if
test "$(CC)" = "" ; then \
43 echo
"Environment variable CC must be set with compiler path" ; \
46 $(CC
) $(LDFLAGS
) -g
-o
$@
-c
$<
49 rm -f demo_module_1.o demo_module_1.so