blob: d984bfdafb61853d832b9332038656b5c952589f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- a/library-src/makefile.lnx
+++ b/library-src/makefile.lnx
@@ -9,7 +9,12 @@
# Notes:
# -fPIC option needed for 64-bit systems
-all: ubuntu
+all: libCLIPSJNI.so
+
+CC ?=
+CFLAGS ?=
+JAVA_HOME ?=
+LDFLAGS ?=
ubuntu : JAVA_HOME = /usr/lib/jvm/default-java
ubuntu : libCLIPSJNI.so
@@ -63,7 +68,7 @@ OBJS = agenda.o analysis.o argacces.o bload.o bmathfun.o bsave.o \
clipsjni_utilities.o clipsjni_glue.o
.c.o :
- gcc -c -std=c99 -O3 -fPIC -DLINUX \
+ $(CC) -c -std=c99 -fPIC $(CFLAGS) $(LDFLAGS) -DLINUX \
-I$(JAVA_INCLUDE) -I$(JAVA_INCLUDE_OS) \
-fno-strict-aliasing -Wstrict-aliasing \
-Wall -Wundef -Wpointer-arith -Wshadow \
@@ -72,7 +77,7 @@ OBJS = agenda.o analysis.o argacces.o bload.o bmathfun.o bsave.o \
-Wstrict-prototypes -Waggregate-return -Wno-implicit $<
libCLIPSJNI.so : $(OBJS)
- gcc -o libCLIPSJNI.so -fPIC -shared \
+ $(CC) -o libCLIPSJNI.so -fPIC $(CFLAGS) $(LDFLAGS) -shared \
-lm $(OBJS)
clean :
|