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