Changeset 26673


Ignore:
Timestamp:
2013-01-10T16:28:24+13:00 (9 years ago)
Author:
davidb
Message:

Changes necessary to support cross-compilation using mingw under Linux for Windows native binaries. Changes focus on control of compile flags to ensure the correct dll/so files with the right naming convensions are produced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/packages/javagdbm/jni/Makefile.in

    r25174 r26673  
    2828LIBS= $(GDBM_LIBS) @LIBS@
    2929LDFLAGS = @LDFLAGS@ @ARCH_DEP_FLAGS@
    30 JNIFLAGS=@JNIFLAGS@
     30JNICFLAGS=@JNICFLAGS@
     31JNILDFLAGS=@JNILDFLAGS@
    3132JNISUFFIX=@JNISUFFIX@
    3233JNIINC=@JNIINC@
     
    4041
    4142WRAPPER_VERSION=0005
    42 NATIVE_LIB=libgdbmjava.$(JNISUFFIX)
     43NATIVE_LIB=$(JNIPREFIX)gdbmjava.$(JNISUFFIX)
    4344
    4445all: $(NATIVE_LIB)
    4546
    4647$(NATIVE_LIB): GdbmFile.h gdbmjava.o Makefile
    47     $(CC) $(LDFLAGS) $(JNIFLAGS) -o $(NATIVE_LIB) gdbmjava.o $(LIBS)
     48    $(CC) $(LDFLAGS) $(JNILDFLAGS) -o $(NATIVE_LIB) gdbmjava.o $(LIBS)
    4849
    4950gdbmjava.o: gdbmjava.c 
    50     $(CC) $(INC) $(CFLAGS) $?
     51    $(CC) $(INC) $(CFLAGS) $(JNICFLAGS) $?
    5152
    5253# no easy way to tell if a class file has changed or not
Note: See TracChangeset for help on using the changeset viewer.