jdk/test/java/awt/JAWT/Makefile.cygwin
author kshefov
Tue, 18 Sep 2012 17:38:40 +0400
changeset 13782 1ca9ff9c0254
child 14856 92a1bcf46888
permissions -rw-r--r--
7190587: Open source and jtreg'ify JAWT regression test Reviewed-by: anthony, omajid
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13782
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     1
# Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     3
#
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     4
# This code is free software; you can redistribute it and/or modify it
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     5
# under the terms of the GNU General Public License version 2 only, as
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     6
# published by the Free Software Foundation.  Oracle designates this
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     7
# particular file as subject to the "Classpath" exception as provided
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     8
# by Oracle in the LICENSE file that accompanied this code.
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
     9
#
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    14
# accompanied this code).
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    15
#
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    19
#
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    22
# questions.
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    23
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    24
CFLAGS =	
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    25
OBJS =		myfile.o
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    26
HEADERS =	MyCanvas.h
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    27
CLASSES =	MyCanvas.class
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    28
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    29
JAVA =		$(TESTJAVA)/bin/java -classpath .
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    30
JAVAC =		$(TESTJAVA)/bin/javac
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    31
JAVAH =		$(TESTJAVA)/bin/javah
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    32
DEL =		rm -rf
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    33
LINK =		$(CC)
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    34
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    35
INCLUDES =	-I $(TESTJAVA)/include/win32 -I $(TESTJAVA)/include -I .
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    36
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    37
LIBS =		$(TESTJAVA)/lib/jawt.lib -lgdi32
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    38
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    39
all:		$(CLASSES) mylib.dll
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    40
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    41
mylib.dll: $(HEADERS) $(OBJS) 
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    42
	$(LINK) -shared -o mylib.dll $(OBJS) $(LIBS) 
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    43
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    44
myfile.o:
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    45
	$(CC) $(CFLAGS)  $(INCLUDES) -c $(TESTSRC)/myfile.cpp
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    46
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    47
clean:
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    48
	$(DEL) mylib.* *.h *.class *.o
1ca9ff9c0254 7190587: Open source and jtreg'ify JAWT regression test
kshefov
parents:
diff changeset
    49