mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-23 19:43: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
|
||||
V= 1.2.1
|
||||
CONFIG= ./config.win
|
||||
|
||||
include $(CONFIG)
|
||||
include config.win
|
||||
|
||||
SRCS= src/$T.c
|
||||
OBJS= src/$T.obj
|
||||
SRCS= src\$T.c
|
||||
OBJS= src\$T.obj
|
||||
|
||||
lib: src/$(LIBNAME)
|
||||
lib: src\$(LIBNAME)
|
||||
|
||||
src/$(LIBNAME): $(OBJS)
|
||||
link /dll /out:src/$(LIBNAME) $(OBJS) $(LUA_LIB)
|
||||
src\$(LIBNAME): $(OBJS)
|
||||
link /dll /def:src\$T.def /out:src\$(LIBNAME) $(OBJS) $(LUA_LIB)
|
||||
|
||||
install: src/$(LIBNAME)
|
||||
mkdir -p $(LUA_LIBDIR)
|
||||
copy src/$(LIBNAME) $(LUA_LIBDIR)
|
||||
install: src\$(LIBNAME)
|
||||
IF NOT EXIST $(LUA_LIBDIR) mkdir $(LUA_LIBDIR)
|
||||
copy src\$(LIBNAME) $(LUA_LIBDIR)
|
||||
|
||||
clean:
|
||||
del src/$(LIBNAME) $(OBJS)
|
||||
del src\$(LIBNAME) $(OBJS)
|
||||
|
||||
10
config.win
10
config.win
@@ -1,17 +1,17 @@
|
||||
# Installation directories
|
||||
# System's libraries directory (where binary libraries are installed)
|
||||
LUA_LIBDIR= c:/lua51/lib
|
||||
LUA_LIBDIR= c:\lua51\lib
|
||||
# Lua includes directory
|
||||
LUA_INC= c:/lua51/include
|
||||
LUA_INC= c:\lua51\include
|
||||
# Lua library
|
||||
LUA_LIB= c:/lua51/bin/lua51.lib
|
||||
LUA_LIB= c:\lua51\bin\lua5.1.lib
|
||||
|
||||
LIBNAME= $T.dll
|
||||
|
||||
# Compilation directives
|
||||
WARN= /O2 /Wall
|
||||
WARN= /O2
|
||||
INCS= /I$(LUA_INC)
|
||||
CFLAGS= $(WARN) $(INCS)
|
||||
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