aboutsummaryrefslogtreecommitdiff
path: root/java/Makefile
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-10 15:29:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-10 15:29:32 +0000
commitd712a4e800ea002a1d980b201d28f033d2bcc8cb (patch)
treee2828dafd168a80e862e1d122f0509e9fedd58e0 /java/Makefile
parentd9f989c8c8f2d529c722fca859c152b0cbd462b1 (diff)
initial java interface commit: IT DOES NOT WORK
Diffstat (limited to 'java/Makefile')
-rw-r--r--java/Makefile33
1 files changed, 33 insertions, 0 deletions
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