mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-24 20:33:06 +00:00
Windows Makefile and config
This commit is contained in:
23
Makefile.win
23
Makefile.win
@@ -1,22 +1,21 @@
|
|||||||
# $Id: Makefile.win,v 1.1 2006/12/04 15:28:53 mascarenhas Exp $
|
# $Id: Makefile.win,v 1.2 2006/12/04 18:24:18 mascarenhas Exp $
|
||||||
|
|
||||||
T= lfs
|
T= lfs
|
||||||
V= 1.2.1
|
V= 1.2.1
|
||||||
CONFIG= ./config.win
|
|
||||||
|
|
||||||
include $(CONFIG)
|
include config.win
|
||||||
|
|
||||||
SRCS= src/$T.c
|
SRCS= src\$T.c
|
||||||
OBJS= src/$T.obj
|
OBJS= src\$T.obj
|
||||||
|
|
||||||
lib: src/$(LIBNAME)
|
lib: src\$(LIBNAME)
|
||||||
|
|
||||||
src/$(LIBNAME): $(OBJS)
|
src\$(LIBNAME): $(OBJS)
|
||||||
link /dll /out:src/$(LIBNAME) $(OBJS) $(LUA_LIB)
|
link /dll /def:src\$T.def /out:src\$(LIBNAME) $(OBJS) $(LUA_LIB)
|
||||||
|
|
||||||
install: src/$(LIBNAME)
|
install: src\$(LIBNAME)
|
||||||
mkdir -p $(LUA_LIBDIR)
|
IF NOT EXIST $(LUA_LIBDIR) mkdir $(LUA_LIBDIR)
|
||||||
copy src/$(LIBNAME) $(LUA_LIBDIR)
|
copy src\$(LIBNAME) $(LUA_LIBDIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
del src/$(LIBNAME) $(OBJS)
|
del src\$(LIBNAME) $(OBJS)
|
||||||
|
|||||||
10
config.win
10
config.win
@@ -1,17 +1,17 @@
|
|||||||
# Installation directories
|
# Installation directories
|
||||||
# System's libraries directory (where binary libraries are installed)
|
# System's libraries directory (where binary libraries are installed)
|
||||||
LUA_LIBDIR= c:/lua51/lib
|
LUA_LIBDIR= c:\lua51\lib
|
||||||
# Lua includes directory
|
# Lua includes directory
|
||||||
LUA_INC= c:/lua51/include
|
LUA_INC= c:\lua51\include
|
||||||
# Lua library
|
# Lua library
|
||||||
LUA_LIB= c:/lua51/bin/lua51.lib
|
LUA_LIB= c:\lua51\bin\lua5.1.lib
|
||||||
|
|
||||||
LIBNAME= $T.dll
|
LIBNAME= $T.dll
|
||||||
|
|
||||||
# Compilation directives
|
# Compilation directives
|
||||||
WARN= /O2 /Wall
|
WARN= /O2
|
||||||
INCS= /I$(LUA_INC)
|
INCS= /I$(LUA_INC)
|
||||||
CFLAGS= $(WARN) $(INCS)
|
CFLAGS= $(WARN) $(INCS)
|
||||||
CC= cl
|
CC= cl
|
||||||
|
|
||||||
# $Id: config.win,v 1.1 2006/12/04 15:28:53 mascarenhas Exp $
|
# $Id: config.win,v 1.2 2006/12/04 18:24:18 mascarenhas Exp $
|
||||||
|
|||||||
5
src/lfs.def
Normal file
5
src/lfs.def
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
LIBRARY lfs.dll
|
||||||
|
DESCRIPTION "LuaFileSystem"
|
||||||
|
VERSION 1.2
|
||||||
|
EXPORTS
|
||||||
|
luaopen_lfs
|
||||||
Reference in New Issue
Block a user