2015-11-06 21:40:35 +01:00
|
|
|
--- Makefile.orig 2015-01-15 18:58:20 UTC
|
|
|
|
+++ Makefile
|
|
|
|
@@ -11,15 +11,18 @@ OBJS= src/$T.o
|
|
|
|
|
2013-01-18 01:12:00 +01:00
|
|
|
lib: src/lfs.so
|
|
|
|
|
2015-11-06 21:40:35 +01:00
|
|
|
+$(OBJS): $(SRCS)
|
|
|
|
+ $(CC) $(CFLAGS) -c $(SRCS) -o $(OBJS)
|
|
|
|
+
|
2013-01-18 01:12:00 +01:00
|
|
|
src/lfs.so: $(OBJS)
|
|
|
|
- MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
|
2015-03-17 23:05:36 +01:00
|
|
|
+ $(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
|
2013-01-18 01:12:00 +01:00
|
|
|
|
2015-02-11 20:50:55 +01:00
|
|
|
test: lib
|
|
|
|
LUA_CPATH=./src/?.so lua tests/test.lua
|
|
|
|
|
2013-01-18 01:12:00 +01:00
|
|
|
install:
|
2014-05-24 16:23:48 +02:00
|
|
|
- mkdir -p $(LUA_LIBDIR)
|
|
|
|
- cp src/lfs.so $(LUA_LIBDIR)
|
|
|
|
+ mkdir -p $(DESTDIR)$(LUA_LIBDIR)
|
|
|
|
+ cp src/lfs.so $(DESTDIR)$(LUA_LIBDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f src/lfs.so $(OBJS)
|