Makefile 487 Bytes
Newer Older
1 2 3 4
progs-y			+= apk
apk-objs		:= state.o database.o package.o archive.o \
			   version.o io.o url.o gunzip.o blob.o \
			   hash.o md5.o apk.o \
5 6
			   add.o del.o update.o info.o search.o \
			   ver.o index.o fetch.o audit.o
7
CFLAGS_apk.o		:= -DAPK_VERSION=\"$(FULL_VERSION)\"
8

9 10 11
progs-$(STATIC)		+= apk.static
apk.static-objs		:= $(apk-objs)
LDFLAGS_apk.static	:= -static
12

13
LIBS			:= /usr/lib/libz.a
14 15 16

install::
	$(INSTALLDIR) $(DESTDIR)$(SBINDIR)
17
	$(INSTALL) $(obj)/apk $(DESTDIR)$(SBINDIR)