Makefile.cygwin revision 5840:1d1254af05dd
1230557Sjimharris# Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. 2230557Sjimharris# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3230557Sjimharris# 4230557Sjimharris# This code is free software; you can redistribute it and/or modify it 5230557Sjimharris# under the terms of the GNU General Public License version 2 only, as 6230557Sjimharris# published by the Free Software Foundation. Oracle designates this 7230557Sjimharris# particular file as subject to the "Classpath" exception as provided 8230557Sjimharris# by Oracle in the LICENSE file that accompanied this code. 9230557Sjimharris# 10230557Sjimharris# This code is distributed in the hope that it will be useful, but WITHOUT 11230557Sjimharris# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12230557Sjimharris# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13230557Sjimharris# version 2 for more details (a copy is included in the LICENSE file that 14230557Sjimharris# accompanied this code). 15230557Sjimharris# 16230557Sjimharris# You should have received a copy of the GNU General Public License version 17230557Sjimharris# 2 along with this work; if not, write to the Free Software Foundation, 18230557Sjimharris# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19230557Sjimharris# 20230557Sjimharris# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21230557Sjimharris# or visit www.oracle.com if you need additional information or have any 22230557Sjimharris# questions. 23230557Sjimharris 24230557SjimharrisCFLAGS = 25230557SjimharrisOBJS = myfile.o 26230557SjimharrisHEADERS = MyCanvas.h 27230557SjimharrisCLASSES = MyCanvas.class 28230557Sjimharris 29230557SjimharrisJAVA = $(TESTJAVA)/bin/java -classpath . 30230557SjimharrisJAVAC = $(TESTJAVA)/bin/javac 31230557SjimharrisJAVAH = $(TESTJAVA)/bin/javah 32230557SjimharrisDEL = rm -rf 33230557SjimharrisLINK = $(CC) 34230557Sjimharris 35230557SjimharrisINCLUDES = -I $(TESTJAVA)/include/win32 -I $(TESTJAVA)/include -I . 36230557Sjimharris 37230557SjimharrisLIBS = $(TESTJAVA)/lib/jawt.lib -lgdi32 38230557Sjimharris 39230557Sjimharrisall: $(CLASSES) mylib.dll 40230557Sjimharris 41230557Sjimharrismylib.dll: $(HEADERS) $(OBJS) 42230557Sjimharris $(LINK) -shared -o mylib.dll $(OBJS) $(LIBS) 43230557Sjimharris 44230557Sjimharrismyfile.o: 45230557Sjimharris $(CC) $(CFLAGS) $(INCLUDES) -c $(TESTSRC)/myfile.cpp 46230557Sjimharris 47230557Sjimharrisclean: 48230557Sjimharris $(DEL) mylib.* *.h *.class *.o 49230557Sjimharris 50230557Sjimharris