--- makefile.orig 2009-06-25 06:07:16.000000000 +0000 +++ makefile 2009-06-25 06:23:06.000000000 +0000 @@ -4,15 +4,11 @@ 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 + export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) lxplib.o $(COMPAT_O) -lexpat $(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c