lcc-win32 build openeuolua
build a openeuolua.dll for
work for LFW LuaForWindows_v5.1.4-46.exe (from goggle code)
in OpenEUOLua.zip OpenEUOLua.txt copy rename to --> openeuolua.c
; make an lib for lcc-win32 usage
copy X:\lua\5.1\lib\lua51.lib
pedump /EXP lua51.lib > 51.exp
buildlib 51.exp lua51_lcc.lib
makefile
[code]
SRCDIR=e:\lcc\p\openeuolua
CFLAGS=-I"E:\lcc\p\OpenEUOLua\lua51\include" -I"e:\lcc\include" -DWIN32 -DLUA_BUILD_AS_DLL
CC=$(LCCROOT)\bin\lcc.exe
LINKER=$(LCCROOT)\bin\lcclnk.exe
OBJS=\
openeuolua.obj
LIBS=e:\lcc\p\openeuolua\lua51_lcc.lib
EXE=e:\lua\5.1\clibs\openeuolua.dll
$(EXE): $(OBJS) Makefile
$(LINKER) -s -dll -entry DllMain -nounderscores -o e:\lua\5.1\clibs\openeuolua.dll $(OBJS) $(LIBS)
# Build openeuolua.c
OPENEUOLUA_C=\
$(SRCDIR)\lua51\include\lauxlib.h\
$(SRCDIR)\lua51\include\lua.h\
$(SRCDIR)\lua51\include\luaconf.h\
openeuolua.obj: $(OPENEUOLUA_C) $(SRCDIR)\openeuolua.c
$(CC) -c $(CFLAGS) $(SRCDIR)\openeuolua.c
link:
$(LINKER) -s -dll -entry DllMain -nounderscores -o e:\lua\5.1\clibs\openeuolua.dll $(OBJS) $(LIBS)
clean:
del $(OBJS) openeuolua.dll
[/code]
0 個意見:
張貼留言
訂閱 張貼留言 [Atom]
<< 首頁