reorganizing dirs in dir_reorg branch, sorry for all the commit notifications
[javacyc.git] / javacyc_1.0 / makefile
blob7cfc93d3a5fb70764e4b09f6b6112b7280283c0c
1 PLAT = linux
2 INCLUDEPATH = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(PLAT) -I/usr/java/include/ -I/usr/java/include/solaris/
4 JAVA_FLAGS = -g
7 Javacyc.class: Javacyc.java libunixdomainsocket.so
8 javac $(JAVA_FLAGS) Javacyc.java
10 libunixdomainsocket.so: UnixDomainSocket.o
11 ld -G -z text -o libunixdomainsocket.so UnixDomainSocket.o
13 UnixDomainSocket.o: UnixDomainSocket.c UnixDomainSocket.h
14 gcc -Wall -fPIC -c $(INCLUDEPATH) UnixDomainSocket.c
16 UnixDomainSocket.h: UnixDomainSocket$1.class
17 javah UnixDomainSocket
19 UnixDomainSocket$1.class: UnixDomainSocket.java
20 javac $(JAVA_FLAGS) UnixDomainSocket.java
22 test: Javacyc.class JavacycTest.java
23 javac $(JAVA_FLAGS) JavacycTest.java
25 stress: Javacyc.class
26 javac $(JAVA_FLAGS) StressTest.java
27 java StressTest
30 clean:
31 rm -f *.class *.so *.o