erikj@16338
|
1 # Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
|
kshefov@5840
|
2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
kshefov@5840
|
3 #
|
kshefov@5840
|
4 # This code is free software; you can redistribute it and/or modify it
|
kshefov@5840
|
5 # under the terms of the GNU General Public License version 2 only, as
|
serb@8729
|
6 # published by the Free Software Foundation.
|
kshefov@5840
|
7 #
|
kshefov@5840
|
8 # This code is distributed in the hope that it will be useful, but WITHOUT
|
kshefov@5840
|
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
kshefov@5840
|
10 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
kshefov@5840
|
11 # version 2 for more details (a copy is included in the LICENSE file that
|
kshefov@5840
|
12 # accompanied this code).
|
kshefov@5840
|
13 #
|
kshefov@5840
|
14 # You should have received a copy of the GNU General Public License version
|
kshefov@5840
|
15 # 2 along with this work; if not, write to the Free Software Foundation,
|
kshefov@5840
|
16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
kshefov@5840
|
17 #
|
kshefov@5840
|
18 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
kshefov@5840
|
19 # or visit www.oracle.com if you need additional information or have any
|
kshefov@5840
|
20 # questions.
|
kshefov@5840
|
21
|
kshefov@5840
|
22 CFLAGS = -fPIC -O
|
kshefov@5840
|
23 OBJS = myfile.o
|
kshefov@5840
|
24 HEADERS = MyCanvas.h
|
kshefov@5840
|
25 CLASSES = MyCanvas.class
|
kshefov@5840
|
26
|
kshefov@5840
|
27 ENV = /usr/bin/env
|
kshefov@5840
|
28 JAVA = $(TESTJAVA)/bin/java -classpath .
|
kshefov@5840
|
29 JAVAC = $(TESTJAVA)/bin/javac
|
kshefov@5840
|
30 JAVAH = $(TESTJAVA)/bin/javah
|
kshefov@5840
|
31 LINK = ld
|
kshefov@5840
|
32
|
kshefov@5840
|
33 J_INC = $(TESTJAVA)/include
|
kshefov@5840
|
34 INCLUDES = -I$(J_INC) -I$(J_INC)/$(SYST) -I.
|
erikj@16338
|
35 LIBS = -L$(TESTJAVA)/lib -ljawt -lX11
|
kshefov@5840
|
36
|
kshefov@5840
|
37 all: $(CLASSES) libmylib.so
|
kshefov@5840
|
38
|
kshefov@5840
|
39 libmylib.so: $(HEADERS) $(OBJS)
|
kshefov@5840
|
40 $(LINK) -G -o libmylib.so $(OBJS) $(LIBS)
|
kshefov@5840
|
41
|
kshefov@5840
|
42 myfile.o: $(TESTSRC)/myfile.c
|
kshefov@5840
|
43 $(CC) $(CFLAGS) $(INCLUDES) -c $(TESTSRC)/myfile.c
|
kshefov@5840
|
44
|
kshefov@5840
|
45 clean:
|
kshefov@5840
|
46 rm -rf libmylib.so $(HEADERS) $(CLASSES) $(OBJS)
|