diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 12 |
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) |