summaryrefslogtreecommitdiff
blob: e1f0209a6f3ff20cefff13d5530eac3002345ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Makefile	2008-03-03 13:59:06.000000000 +0100
+++ Makefile.new	2008-03-30 16:27:12.000000000 +0200
@@ -1,14 +1,14 @@
-CC = gcc
 INC = $(JAVA_HOME)/include
-CFLAGS = -Wall -O3 -fPIC
-LDFLAGS = -shared -Wl,-soname,libnative.so -I$(INC) -I$(INC)/linux
+CFLAGS += -Wall
+LDFLAGS += -shared -Wl,-soname,libnative.so -I$(INC) -I$(INC)/linux
 LIBS = -lc
 
 all: clean libNativeThread.so
 
 NativeThread.class:
-	javac java/NativeThread.java
-	mv java/NativeThread.class freenet/support/io/
+	javac -classpath /usr/share/freenet/lib/freenet.jar NativeThread.java
+	mkdir -p freenet/support/io
+	mv NativeThread.class freenet/support/io/
 
 libNativeThread.so: NativeThread.c NativeThread.h
 	$(CC) $(CFLAGS) -o libNativeThread.so $(LDFLAGS) NativeThread.c $(LIBS)