clib linkage

This commit is contained in:
Doug MacEachern 2005-09-10 05:58:10 +00:00
parent 935ac34dc1
commit bd85a2b104
3 changed files with 9 additions and 1 deletions

View File

@ -4,6 +4,7 @@ NDRIVE = g:
NDK_ROOT = $(NDKBASE)/ndk
SDK_LIBC = $(NDK_ROOT)/libc
SDK_CLIB = $(NDK_ROOT)/clib
JBINDINGS = ../../../bindings/java
JBUILD = $(JBINDINGS)/build
@ -35,7 +36,9 @@ LDFLAGS = -nostdlib $(PRELUDE) $(DEF_FILE) $(NW_OBJ) $(SIGAR_OBJ) $(JNI_OBJ) -o
INCLUDES += \
-I$(SDK_LIBC)/include \
-I$(SDK_LIBC)/include/nks \
-I$(SDK_LIBC)/include/winsock
-I$(SDK_LIBC)/include/winsock \
-I$(SDK_CLIB)/include \
-I$(SDK_CLIB)/include/nlm
CFLAGS += $(INCLUDES)

View File

@ -47,11 +47,14 @@ int _NonAppStart(void *NLMHandle,
WSADATA wsaData;
NWCallsInit(NULL, NULL);
return WSAStartup((WORD)MAKEWORD(2, 0), &wsaData);
}
void _NonAppStop(void)
{
NWCallsTerm(NULL);
WSACleanup();
}

View File

@ -12,6 +12,8 @@ check _LibCCheckUnload
import @c:/novell/ndk/libc/imports/libc.imp
import @c:/novell/ndk/libc/imports/netware.imp
import @c:/novell/ndk/libc/imports/ws2nlm.imp
import @c:/novell/ndk/clib/imports/clib.imp
import @c:/novell/ndk/clib/imports/calnlm32.imp
module libc
export @../../../bindings/java/build/src/javasigar_generated.def