diff options
-rw-r--r-- | Makefile.win | 23 | ||||
-rw-r--r-- | config.win | 10 | ||||
-rw-r--r-- | src/lfs.def | 5 |
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 | ||
3 | T= lfs | 3 | T= lfs |
4 | V= 1.2.1 | 4 | V= 1.2.1 |
5 | CONFIG= ./config.win | ||
6 | 5 | ||
7 | include $(CONFIG) | 6 | include config.win |
8 | 7 | ||
9 | SRCS= src/$T.c | 8 | SRCS= src\$T.c |
10 | OBJS= src/$T.obj | 9 | OBJS= src\$T.obj |
11 | 10 | ||
12 | lib: src/$(LIBNAME) | 11 | lib: src\$(LIBNAME) |
13 | 12 | ||
14 | src/$(LIBNAME): $(OBJS) | 13 | src\$(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 | ||
17 | install: src/$(LIBNAME) | 16 | install: 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 | ||
21 | clean: | 20 | clean: |
22 | del src/$(LIBNAME) $(OBJS) | 21 | del src\$(LIBNAME) $(OBJS) |
@@ -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) |
3 | LUA_LIBDIR= c:/lua51/lib | 3 | LUA_LIBDIR= c:\lua51\lib |
4 | # Lua includes directory | 4 | # Lua includes directory |
5 | LUA_INC= c:/lua51/include | 5 | LUA_INC= c:\lua51\include |
6 | # Lua library | 6 | # Lua library |
7 | LUA_LIB= c:/lua51/bin/lua51.lib | 7 | LUA_LIB= c:\lua51\bin\lua5.1.lib |
8 | 8 | ||
9 | LIBNAME= $T.dll | 9 | LIBNAME= $T.dll |
10 | 10 | ||
11 | # Compilation directives | 11 | # Compilation directives |
12 | WARN= /O2 /Wall | 12 | WARN= /O2 |
13 | INCS= /I$(LUA_INC) | 13 | INCS= /I$(LUA_INC) |
14 | CFLAGS= $(WARN) $(INCS) | 14 | CFLAGS= $(WARN) $(INCS) |
15 | CC= cl | 15 | CC= 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 @@ | |||
1 | LIBRARY lfs.dll | ||
2 | DESCRIPTION "LuaFileSystem" | ||
3 | VERSION 1.2 | ||
4 | EXPORTS | ||
5 | luaopen_lfs | ||