2 AM_CFLAGS=-DLINUX -DPOSIX_TTY -I$(JVM_INCLUDE)
3 AM_JAVACFLAGS=-encoding UTF-8
5 altoslibdir=$(libdir)/altos
7 altoslib_LTLIBRARIES=libaltos.la
9 libaltos_la_LDFLAGS = -version-info 1:0:1
15 noinst_PROGRAMS=cjnitest
17 cjnitest_LDADD=libaltos.la
23 SWIG_FILE=libaltos.swig
27 $(SWIG_FILE): libaltos.i0 $(HFILES)
28 sed 's;//%;%;' libaltos.i0 $(HFILES) > $(SWIG_FILE)
30 all-local: classlibaltos.stamp
32 libaltos_wrap.c: classlibaltos.stamp
34 classlibaltos.stamp: $(SWIG_FILE)
35 swig -java -package libaltosJNI $(SWIG_FILE)
37 $(JAVAC) -d . $(AM_JAVACFLAGS) $(JAVACFLAGS) *.java && \
38 touch classlibaltos.stamp
40 MINGCC32=i686-w64-mingw32-gcc
41 MINGCC64=x86_64-w64-mingw32-gcc
42 MINGFLAGS=-Wall -DWINDOWS -DBUILD_DLL -I$(JVM_INCLUDE)
45 fat: altos.dll altos64.dll
47 altos.dll: $(libaltos_la_SOURCES)
48 $(MINGCC32) -o $@ $(MINGFLAGS) -shared $(libaltos_la_SOURCES) $(MINGLIBS)
50 altos64.dll: $(libaltos_la_SOURCES)
51 $(MINGCC64) -o $@ $(MINGFLAGS) -shared $(libaltos_la_SOURCES) $(MINGLIBS)
54 -rm -rf libaltosJNI *.class *.java classlibaltos.stamp $(SWIG_FILE) libaltos_wrap.c altos.dll altos64.dll