2019-04-05 12:36:47 +02:00
|
|
|
pkg_SOURCES = main/command.h main/depgraph.h
|
2019-04-05 12:33:50 +02:00
|
|
|
pkg_SOURCES += main/pkg.c main/command.c
|
2019-03-09 00:23:06 +01:00
|
|
|
pkg_SOURCES += main/depgraph/collect.c main/depgraph/pkglist.c
|
|
|
|
pkg_SOURCES += main/depgraph/tsort.c
|
|
|
|
|
2019-04-05 12:36:47 +02:00
|
|
|
pkg_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/main
|
2019-02-04 15:51:55 +01:00
|
|
|
pkg_CFLAGS = $(AM_CFLAGS)
|
2019-04-05 12:33:50 +02:00
|
|
|
pkg_LDADD = libpkg.a libutil.a libfilelist.a libcomp.a
|
2019-02-04 15:51:55 +01:00
|
|
|
|
|
|
|
##### commands #####
|
|
|
|
|
|
|
|
# pack command
|
|
|
|
pkg_SOURCES += main/cmd/pack/filelist.c
|
|
|
|
pkg_SOURCES += main/cmd/pack/write_toc.c main/cmd/pack/write_files.c
|
|
|
|
pkg_SOURCES += main/cmd/pack/pack.h main/cmd/pack/pack.c
|
|
|
|
pkg_SOURCES += main/cmd/pack/desc.c main/cmd/pack/write_hdr.c
|
|
|
|
|
|
|
|
# dump command
|
|
|
|
pkg_SOURCES += main/cmd/dump/dump.c main/cmd/dump/dump.h
|
|
|
|
pkg_SOURCES += main/cmd/dump/dump_header.c
|
|
|
|
|
|
|
|
# install command
|
2019-03-09 00:23:06 +01:00
|
|
|
pkg_SOURCES += main/cmd/install.c
|
2019-02-04 15:51:55 +01:00
|
|
|
|
2019-03-07 22:57:30 +01:00
|
|
|
# buildstrategy command
|
|
|
|
pkg_SOURCES += main/cmd/buildstrategy/buildstrategy.h
|
|
|
|
pkg_SOURCES += main/cmd/buildstrategy/buildstrategy.c
|
2019-03-30 17:57:34 +01:00
|
|
|
pkg_SOURCES += main/cmd/buildstrategy/srcpkg.c
|
2019-03-30 18:20:33 +01:00
|
|
|
pkg_SOURCES += main/cmd/buildstrategy/provider.c
|
2019-03-07 22:57:30 +01:00
|
|
|
|
2019-03-09 00:56:32 +01:00
|
|
|
# depgraph command
|
|
|
|
pkg_SOURCES += main/cmd/depgraph.c
|
|
|
|
|
2019-02-04 15:51:55 +01:00
|
|
|
# unpack command
|
|
|
|
pkg_SOURCES += main/cmd/unpack.c
|
|
|
|
|
|
|
|
# help command
|
|
|
|
pkg_SOURCES += main/cmd/help.c
|
|
|
|
|
|
|
|
##### compressors #####
|
2019-04-05 12:13:12 +02:00
|
|
|
if WITH_LZMA
|
|
|
|
pkg_LDADD += $(XZ_LIBS)
|
|
|
|
endif
|
2019-02-04 15:51:55 +01:00
|
|
|
|
|
|
|
if WITH_ZLIB
|
|
|
|
pkg_LDADD += $(ZLIB_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
bin_PROGRAMS += pkg
|