mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2024-11-13 07:57:45 +00:00
28 lines
590 B
Text
28 lines
590 B
Text
LUA_INC=c:\lua5.1\include
|
|
LUA_DIR=c:\lua5.1\lua
|
|
LUA_LIBDIR=c:\lua5.1
|
|
LUA_LIB=c:\lua5.1\lua5.1.lib
|
|
|
|
T=sqlite3
|
|
|
|
DRIVER_INCLUDE= /I"c:\sqlite3"
|
|
DRIVER_OBJ="c:\sqlite3\sqlite3.obj"
|
|
|
|
OBJS= src\luasql.obj src\ls_$T.obj $(DRIVER_OBJ)
|
|
|
|
.c.obj:
|
|
cl /c /Fo$@ /O2 /MD /I$(LUA_INC) /DWIN32 /D_CRT_SECURE_NO_DEPRECATE $(DRIVER_INCLUDE) $<
|
|
|
|
src\$T.dll: $(OBJS)
|
|
link /dll /def:src\$T.def /out:$@ $(OBJS) $(LUA_LIB)
|
|
|
|
install:
|
|
IF NOT EXIST "$(LUA_LIBDIR)\luasql" mkdir "$(LUA_LIBDIR)\luasql"
|
|
copy "src\$T.dll" "$(LUA_LIBDIR)\luasql"
|
|
|
|
clean:
|
|
del src\$T.dll
|
|
del src\$T.exp
|
|
del src\$T.lib
|
|
del $(OBJS)
|
|
|