makefile for luarocks on windows
This commit is contained in:
parent
8f08eb1c39
commit
fd24fedd30
18
Makefile.win
Normal file
18
Makefile.win
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
OBJS= src\luasql.obj src\ls_$T.obj
|
||||||
|
|
||||||
|
SRCS= src\luasql.h src\luasql.c src\ls_$T.c
|
||||||
|
|
||||||
|
LIBNAME= $T.dll
|
||||||
|
|
||||||
|
all: src\$(LIBNAME)
|
||||||
|
|
||||||
|
.c.obj:
|
||||||
|
cl /c /Fo$@ /O2 $(CFLAGS) /DWIN32 /D_CRT_SECURE_NO_DEPRECATE $<
|
||||||
|
|
||||||
|
src\$(LIBNAME): $(OBJS)
|
||||||
|
link /out:$@ $(LIB_OPTION) $(OBJS)
|
||||||
|
|
||||||
|
install:
|
||||||
|
IF NOT EXIST "$(LUA_LIBDIR)\luasql" mkdir "$(LUA_LIBDIR)\luasql"
|
||||||
|
cp src\$(LIBNAME) "$(LUA_LIBDIR)\luasql"
|
@ -34,5 +34,13 @@ build = {
|
|||||||
},
|
},
|
||||||
install_variables = {
|
install_variables = {
|
||||||
LUA_LIBDIR = "$(LIBDIR)",
|
LUA_LIBDIR = "$(LIBDIR)",
|
||||||
|
},
|
||||||
|
platforms = {
|
||||||
|
"windows" = {
|
||||||
|
build_variables = {
|
||||||
|
LIB_OPTION = "$(SQLITE_LIB)",
|
||||||
|
CFLAGS = "$(CFLAGS) /I$(LUA_INCDIR) /I$(SQLITE_INCDIR)"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user