Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Windows Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Mascarenhas committed Mar 22, 2007
1 parent 0e5d8fc commit 07a26cd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
LUA_INC=c:\lua5.1\include
LUA_DIR=c:\lua5.1\lua
LUA_LIBDIR=c:\lua5.1\lib
LUA_LIB=c:\lua5.1\bin\lua5.1.lib

OBJS= src\lxplib.obj

EXPAT_INCLUDE=C:\Expat-2.0.0\Source\lib
EXPAT_LIB=C:\Expat-2.0.0\Libs\libexpat.lib

.c.obj:
cl /c /Fo$@ /O2 /I$(LUA_INC) /I$(EXPAT_INCLUDE) /D_CRT_SECURE_NO_DEPRECATE $<

src\lxp.dll: $(OBJS)
link /dll /def:src\lxp.def /out:$@ $(OBJS) $(EXPAT_LIB) $(LUA_LIB)

install: src\lxp.dll
IF NOT EXIST $(LUA_LIBDIR) mkdir $(LUA_LIBDIR)
copy src\lxp.dll $(LUA_LIBDIR)
IF NOT EXIST $(LUA_DIR)\lxp mkdir $(LUA_DIR)\lxp
copy src\lxp\lom.lua $(LUA_DIR)\lxp

clean:
del src\lxp.dll
del src\*.obj

# $Id: makefile.win,v 1.1 2007-03-22 21:55:01 mascarenhas Exp $
2 changes: 2 additions & 0 deletions src/lxp.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
EXPORTS
luaopen_lxp

0 comments on commit 07a26cd

Please sign in to comment.