aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.win23
-rw-r--r--config.win10
-rw-r--r--src/lfs.def5
3 files changed, 21 insertions, 17 deletions
diff --git a/Makefile.win b/Makefile.win
index b9cddc8..155b548 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -1,22 +1,21 @@
1# $Id: Makefile.win,v 1.1 2006/12/04 15:28:53 mascarenhas Exp $ 1# $Id: Makefile.win,v 1.2 2006/12/04 18:24:18 mascarenhas Exp $
2 2
3T= lfs 3T= lfs
4V= 1.2.1 4V= 1.2.1
5CONFIG= ./config.win
6 5
7include $(CONFIG) 6include config.win
8 7
9SRCS= src/$T.c 8SRCS= src\$T.c
10OBJS= src/$T.obj 9OBJS= src\$T.obj
11 10
12lib: src/$(LIBNAME) 11lib: src\$(LIBNAME)
13 12
14src/$(LIBNAME): $(OBJS) 13src\$(LIBNAME): $(OBJS)
15 link /dll /out:src/$(LIBNAME) $(OBJS) $(LUA_LIB) 14 link /dll /def:src\$T.def /out:src\$(LIBNAME) $(OBJS) $(LUA_LIB)
16 15
17install: src/$(LIBNAME) 16install: src\$(LIBNAME)
18 mkdir -p $(LUA_LIBDIR) 17 IF NOT EXIST $(LUA_LIBDIR) mkdir $(LUA_LIBDIR)
19 copy src/$(LIBNAME) $(LUA_LIBDIR) 18 copy src\$(LIBNAME) $(LUA_LIBDIR)
20 19
21clean: 20clean:
22 del src/$(LIBNAME) $(OBJS) 21 del src\$(LIBNAME) $(OBJS)
diff --git a/config.win b/config.win
index 0259106..587241f 100644
--- a/config.win
+++ b/config.win
@@ -1,17 +1,17 @@
1# Installation directories 1# Installation directories
2# System's libraries directory (where binary libraries are installed) 2# System's libraries directory (where binary libraries are installed)
3LUA_LIBDIR= c:/lua51/lib 3LUA_LIBDIR= c:\lua51\lib
4# Lua includes directory 4# Lua includes directory
5LUA_INC= c:/lua51/include 5LUA_INC= c:\lua51\include
6# Lua library 6# Lua library
7LUA_LIB= c:/lua51/bin/lua51.lib 7LUA_LIB= c:\lua51\bin\lua5.1.lib
8 8
9LIBNAME= $T.dll 9LIBNAME= $T.dll
10 10
11# Compilation directives 11# Compilation directives
12WARN= /O2 /Wall 12WARN= /O2
13INCS= /I$(LUA_INC) 13INCS= /I$(LUA_INC)
14CFLAGS= $(WARN) $(INCS) 14CFLAGS= $(WARN) $(INCS)
15CC= cl 15CC= cl
16 16
17# $Id: config.win,v 1.1 2006/12/04 15:28:53 mascarenhas Exp $ 17# $Id: config.win,v 1.2 2006/12/04 18:24:18 mascarenhas Exp $
diff --git a/src/lfs.def b/src/lfs.def
new file mode 100644
index 0000000..55ec688
--- /dev/null
+++ b/src/lfs.def
@@ -0,0 +1,5 @@
1LIBRARY lfs.dll
2DESCRIPTION "LuaFileSystem"
3VERSION 1.2
4EXPORTS
5luaopen_lfs