aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 2c11b58..068f309 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
1# $Id: Makefile,v 1.28 2006/06/08 18:06:18 tomas Exp $ 1# $Id: Makefile,v 1.29 2006/12/04 15:28:53 mascarenhas Exp $
2 2
3T= lfs 3T= lfs
4V= 1.2.1 4V= 1.2.1
@@ -6,26 +6,18 @@ CONFIG= ./config
6 6
7include $(CONFIG) 7include $(CONFIG)
8 8
9ifeq "$(LUA_VERSION_NUM)" "500"
10COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
11endif
12
13SRCS= src/$T.c 9SRCS= src/$T.c
14OBJS= src/$T.o $(COMPAT_O) 10OBJS= src/$T.o
15
16 11
17lib: src/$(LIBNAME) 12lib: src/$(LIBNAME)
18 13
19src/$(LIBNAME): $(OBJS) 14src/$(LIBNAME): $(OBJS)
20 export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) 15 export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)
21 16
22$(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c
23 $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
24
25install: src/$(LIBNAME) 17install: src/$(LIBNAME)
26 mkdir -p $(LUA_LIBDIR) 18 mkdir -p $(LUA_LIBDIR)
27 cp src/$(LIBNAME) $(LUA_LIBDIR) 19 cp src/$(LIBNAME) $(LUA_LIBDIR)
28 cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so 20 cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
29 21
30clean: 22clean:
31 rm -f src/$(LIBNAME) $(OBJS) $(COMPAT_O) 23 rm -f src/$(LIBNAME) $(OBJS)