Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 31 lines (22 sloc) 673 Bytes
T= lxp
V= 1.1.0
CONFIG= ./config
include $(CONFIG)
ifeq "$(LUA_VERSION_NUM)" "500"
COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
endif
OBJS= src/lxplib.o $(COMPAT_O)
lib: src/$(LIBNAME)
src/$(LIBNAME) : $(OBJS)
export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat
$(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
install:
mkdir -p $(LUA_LIBDIR)
cp src/$(LIBNAME) $(LUA_LIBDIR)
cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
mkdir -p $(LUA_DIR)/$T
cp src/$T/lom.lua $(LUA_DIR)/$T
clean:
rm -f src/$(LIBNAME) $(OBJS)
# $Id: makefile,v 1.33 2006-06-08 20:41:48 tomas Exp $