From d712a4e800ea002a1d980b201d28f033d2bcc8cb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 Apr 2001 15:29:32 +0000 Subject: initial java interface commit: IT DOES NOT WORK --- java/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 java/Makefile (limited to 'java/Makefile') diff --git a/java/Makefile b/java/Makefile new file mode 100644 index 000000000..e05ea6004 --- /dev/null +++ b/java/Makefile @@ -0,0 +1,33 @@ + +TARGET = libjavacurl.so + +OBJS = javacurl.o + +CC = gcc +CFLAGS = -c +CPPFLAGS = -I/usr/j2se/include -I/usr/local/include -I/usr/j2se/include/solaris +LDFLAGS = -lcurl -ldl -L/usr/local/ssl/lib -lssl -lcrypto + +all: CurlGlue.h CurlGlue.class javacurl.o $(TARGET) test.class + +test: + java test + +javacurl.o: javacurl.c CurlGlue.h + $(CC) $(CPPFLAGS) $(CFLAGS) $< + +CurlGlue.h: CurlGlue.java CurlGlue.class + javah CurlGlue + touch CurlGlue.h + +test.class: CurlGlue.class javacurl.o + javac test.java + +CurlGlue.class: CurlGlue.java + javac $< + +$(TARGET): $(OBJS) + $(CC) -G -o $(TARGET) $(LDFLAGS) $(OBJS) + +clean: + rm -f javacurl.o CurlGlue.h CurlGlue.class -- cgit v1.2.3