Makefile 528 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 \
Timo Teräs's avatar
Timo Teräs committed
5
			   add.o del.o update.o info.o search.o upgrade.o \
Timo Teräs's avatar
Timo Teräs committed
6
			   cache.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
LDFLAGS_apk		+= -nopie
13

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

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