Skip to content
Snippets Groups Projects
Commit a086e99b authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added Linux hints

parent 62056a64
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,9 @@ OBJS = javacurl.o ...@@ -6,7 +6,9 @@ OBJS = javacurl.o
CC = gcc CC = gcc
CFLAGS = -c CFLAGS = -c
CPPFLAGS = -I/usr/j2se/include -I/usr/local/include -I/usr/j2se/include/solaris CPPFLAGS = -I/usr/j2se/include -I/usr/local/include -I/usr/j2se/include/solaris
LDFLAGS = -lcurl -ldl -L/usr/local/ssl/lib -lssl -lcrypto
# Linux might use -shared -Wl,-soname,libnative.so instead of -G
LDFLAGS = -G -lcurl -ldl -L/usr/local/ssl/lib -lssl -lcrypto
all: CurlGlue.h CurlGlue.class javacurl.o $(TARGET) test.class all: CurlGlue.h CurlGlue.class javacurl.o $(TARGET) test.class
...@@ -27,7 +29,7 @@ CurlGlue.class: CurlGlue.java ...@@ -27,7 +29,7 @@ CurlGlue.class: CurlGlue.java
javac $< javac $<
$(TARGET): $(OBJS) $(TARGET): $(OBJS)
$(CC) -G -o $(TARGET) $(LDFLAGS) $(OBJS) $(CC) -o $(TARGET) $(LDFLAGS) $(OBJS)
clean: clean:
rm -f javacurl.o CurlGlue.h CurlGlue.class rm -f javacurl.o CurlGlue.h CurlGlue.class
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment