mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
Initial revision
This commit is contained in:
35
Makefile
Normal file
35
Makefile
Normal file
@@ -0,0 +1,35 @@
|
||||
# $Id: Makefile,v 1.1 2004/07/27 14:15:24 tomas Exp $
|
||||
|
||||
T= luafilesystem
|
||||
|
||||
include ./config
|
||||
|
||||
V= 1.0a
|
||||
LIBNAME= lib$T.$V$(LIB_EXT)
|
||||
L= $T.lua
|
||||
TL= t_$T.lua
|
||||
|
||||
SRCS= $T.c
|
||||
OBJS= $T.o
|
||||
|
||||
|
||||
lib: $(LIBNAME)
|
||||
|
||||
$(LIBNAME): $(OBJS) $(TL)
|
||||
$(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS)
|
||||
sed -e "s|LIB_NAME|$(LIB_DIR)/$(LIBNAME)|" $(TL) > $L
|
||||
|
||||
$(LUA_DIR)/$L: $L
|
||||
mkdir -p $(LUA_DIR)
|
||||
cp $L $(LUA_DIR)
|
||||
|
||||
install: $(LUA_DIR)/$L $(LIBNAME)
|
||||
mkdir -p $(LIB_DIR)
|
||||
cp $(LIBNAME) $(LIB_DIR)
|
||||
|
||||
clean:
|
||||
rm -f $L $(LIBNAME) $(OBJS)
|
||||
|
||||
dist:
|
||||
mkdir -p $(DIST_DIR)
|
||||
cp config $(SRCS) $T.h $(TL) Makefile $(DIST_DIR)
|
||||
Reference in New Issue
Block a user