summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-06 19:07:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-11 07:02:18 +0000
commit7aed449427348824f7fbfc0e9dc698ea6519f91e (patch)
tree73b00265c5c534d639ec6ee7317f2736954137f2 /src/Makefile
parent3ec82a5a420fc00d38ad7dded819525a91533652 (diff)
downloadapk-tools-7aed449427348824f7fbfc0e9dc698ea6519f91e.tar.gz
apk-tools-7aed449427348824f7fbfc0e9dc698ea6519f91e.tar.bz2
apk-tools-7aed449427348824f7fbfc0e9dc698ea6519f91e.tar.xz
apk-tools-7aed449427348824f7fbfc0e9dc698ea6519f91e.zip
lua: initial lua module
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index b0b2a67..a7f1419 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -8,6 +8,11 @@ shlibs-y += libapk.so
libapk.so-objs := common.o state.o database.o package.o archive.o \
version.o io.o url.o gunzip.o blob.o hash.o print.o
+shlibs-y += apk.so
+apk.so-objs := lua-apk.o
+CFLAGS_lua-apk.o := -DAPK_VERSION=\"$(FULL_VERSION)\"
+LIBS_apk.so := -L$(obj) -llua -lapk
+
progs-y += apk
apk-objs := apk.o add.o del.o fix.o update.o info.o \
search.o upgrade.o cache.o ver.o index.o fetch.o \
@@ -30,8 +35,11 @@ LIBS := -Wl,--as-needed \
$(obj)/apk: $(obj)/libapk.so
-install: $(obj)/apk $(obj)/libapk.so
- $(INSTALLDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR)
+$(obj)/apk.so: $(obj)/libapk.so
+
+install: $(obj)/apk $(obj)/libapk.so $(obj)/apk.so
+ $(INSTALLDIR) $(addprefix $(DESTDIR),$(SBINDIR) $(LIBDIR) $(LUA_LIBDIR))
$(INSTALL) $(obj)/apk $(DESTDIR)$(SBINDIR)
$(INSTALL) $(obj)/libapk.so $(DESTDIR)$(LIBDIR)
+ $(INSTALL) $(obj)/apk.so $(DESTDIR)$(LUA_LIBDIR)