2014-11-17 17:56:15 -03:00
|
|
|
|
2016-04-14 13:19:20 -03:00
|
|
|
ALPM_VALA_FLAGS = --pkg=libalpm \
|
2014-10-22 13:44:02 -03:00
|
|
|
--pkg=gio-2.0 \
|
|
|
|
--vapidir=../vapi \
|
2016-04-14 13:19:20 -03:00
|
|
|
-X -D_FILE_OFFSET_BITS=64
|
|
|
|
|
|
|
|
COMMON_VALA_FLAGS = -X -w \
|
|
|
|
--pkg=posix \
|
2014-10-30 10:44:09 -03:00
|
|
|
-X -DGETTEXT_PACKAGE="pamac" \
|
2014-10-22 13:44:02 -03:00
|
|
|
--target-glib=2.38
|
|
|
|
|
2016-04-14 13:19:20 -03:00
|
|
|
TRANSACTION_VALA_FLAGS = --pkg=gtk+-3.0 \
|
2015-03-04 11:55:36 -03:00
|
|
|
--pkg=gdk-3.0 \
|
2016-02-02 05:28:07 -03:00
|
|
|
--pkg=vte-2.91 \
|
|
|
|
-X -lm
|
2015-03-04 11:55:36 -03:00
|
|
|
|
2016-04-14 13:19:20 -03:00
|
|
|
PAMAC_LIB_FLAGS = -X -I. \
|
|
|
|
-X -L. \
|
|
|
|
-X -lpamac \
|
|
|
|
--vapidir=./ \
|
|
|
|
--pkg=pamac \
|
|
|
|
|
|
|
|
COMMON_SOURCES = common.vala \
|
2017-07-29 10:35:04 -04:00
|
|
|
package.vala \
|
2016-04-14 13:19:20 -03:00
|
|
|
pamac_config.vala
|
2014-10-22 13:44:02 -03:00
|
|
|
|
2017-07-29 10:35:04 -04:00
|
|
|
TRANSACTION_SOURCES = transaction.vala \
|
2015-03-04 11:55:36 -03:00
|
|
|
choose_provider_dialog.vala \
|
|
|
|
transaction_sum_dialog.vala \
|
2016-05-18 10:25:31 -04:00
|
|
|
progress_box.vala
|
2014-10-22 13:44:02 -03:00
|
|
|
|
2015-08-20 10:11:18 -03:00
|
|
|
PREFERENCES_SOURCES = preferences_dialog.vala \
|
|
|
|
choose_ignorepkgs_dialog.vala \
|
|
|
|
mirrors_config.vala
|
|
|
|
|
2016-02-26 06:37:26 -03:00
|
|
|
TRANSACTION_GRESOURCE_FILE = ../resources/pamac.transaction.gresource.xml
|
|
|
|
|
2015-08-20 10:11:18 -03:00
|
|
|
MANAGER_GRESOURCE_FILE = ../resources/pamac.manager.gresource.xml
|
|
|
|
|
|
|
|
INSTALLER_GRESOURCE_FILE = ../resources/pamac.installer.gresource.xml
|
|
|
|
|
2017-07-29 10:35:04 -04:00
|
|
|
binaries: pamac-user-daemon pamac-system-daemon pamac-tray pamac-manager pamac-install
|
2015-01-24 14:09:47 -03:00
|
|
|
|
|
|
|
clean:
|
2017-07-29 10:35:04 -04:00
|
|
|
rm -f *.c pamac.h pamac.vapi libpamac.so pamac-user-daemon pamac-system-daemon pamac-tray pamac-tray-appindicator pamac-manager pamac-install
|
2014-11-30 12:51:33 -03:00
|
|
|
|
2016-08-29 11:29:58 -03:00
|
|
|
pamac-tray: $(COMMON_SOURCES) alpm_config.vala tray.vala tray-gtk.vala
|
2015-04-12 11:04:30 -03:00
|
|
|
valac -o pamac-tray \
|
2016-08-29 11:29:58 -03:00
|
|
|
$(COMMON_VALA_FLAGS) \
|
|
|
|
--pkg=gtk+-3.0 \
|
|
|
|
--pkg=libnotify \
|
|
|
|
$(COMMON_SOURCES) \
|
|
|
|
tray-gtk.vala \
|
|
|
|
tray.vala
|
|
|
|
|
|
|
|
pamac-tray-appindicator: $(COMMON_SOURCES) alpm_config.vala tray.vala tray-appindicator.vala
|
|
|
|
valac -o pamac-tray-appindicator \
|
2015-04-12 11:04:30 -03:00
|
|
|
$(COMMON_VALA_FLAGS) \
|
2015-03-04 11:55:36 -03:00
|
|
|
--pkg=gtk+-3.0 \
|
2016-08-27 17:31:31 -03:00
|
|
|
--pkg=appindicator3-0.1 \
|
2015-03-04 11:55:36 -03:00
|
|
|
--pkg=libnotify \
|
2016-02-02 05:28:07 -03:00
|
|
|
$(COMMON_SOURCES) \
|
2016-08-29 11:29:58 -03:00
|
|
|
tray-appindicator.vala \
|
2015-03-04 11:55:36 -03:00
|
|
|
tray.vala
|
|
|
|
|
2017-07-29 10:35:04 -04:00
|
|
|
pamac-user-daemon: ../vapi/libalpm.vapi alpm_config.vala common.vala package.vala aur.vala user_daemon.vala
|
|
|
|
valac -o pamac-user-daemon \
|
|
|
|
$(COMMON_VALA_FLAGS) \
|
|
|
|
$(ALPM_VALA_FLAGS) \
|
|
|
|
--pkg=json-glib-1.0 \
|
|
|
|
--pkg=libsoup-2.4 \
|
2017-09-09 05:23:59 -03:00
|
|
|
--pkg=appstream-glib \
|
2017-07-29 10:35:04 -04:00
|
|
|
--thread \
|
|
|
|
alpm_config.vala \
|
|
|
|
common.vala \
|
|
|
|
package.vala \
|
|
|
|
aur.vala \
|
|
|
|
user_daemon.vala
|
|
|
|
|
|
|
|
pamac-system-daemon: ../vapi/libalpm.vapi ../vapi/polkit-gobject-1.vapi ../vapi/libcurl.vapi alpm_config.vala $(COMMON_SOURCES) aur.vala mirrors_config.vala system_daemon.vala
|
|
|
|
valac -o pamac-system-daemon \
|
2014-10-22 13:44:02 -03:00
|
|
|
$(COMMON_VALA_FLAGS) \
|
2016-04-14 13:19:20 -03:00
|
|
|
$(ALPM_VALA_FLAGS) \
|
2014-10-22 13:44:02 -03:00
|
|
|
--pkg=polkit-gobject-1 \
|
2016-02-22 09:47:40 -03:00
|
|
|
--pkg=libcurl \
|
2016-02-26 06:37:26 -03:00
|
|
|
--pkg=json-glib-1.0 \
|
|
|
|
--pkg=libsoup-2.4 \
|
2014-10-22 13:44:02 -03:00
|
|
|
--thread \
|
2016-04-14 13:19:20 -03:00
|
|
|
alpm_config.vala \
|
2014-10-22 13:44:02 -03:00
|
|
|
$(COMMON_SOURCES) \
|
2016-02-26 06:37:26 -03:00
|
|
|
aur.vala \
|
2015-08-20 10:11:18 -03:00
|
|
|
mirrors_config.vala \
|
2017-07-29 10:35:04 -04:00
|
|
|
system_daemon.vala
|
2014-10-22 13:44:02 -03:00
|
|
|
|
2016-04-14 13:19:20 -03:00
|
|
|
libpamac.so: $(COMMON_SOURCES) $(TRANSACTION_SOURCES) $(PREFERENCES_SOURCES) ../resources/transaction_resources.c
|
2016-02-26 06:37:26 -03:00
|
|
|
valac -o libpamac.so \
|
|
|
|
-X -fPIC \
|
|
|
|
-X --shared \
|
|
|
|
-H pamac.h \
|
|
|
|
--vapi=pamac.vapi \
|
|
|
|
--library=libpamac \
|
2014-10-22 13:44:02 -03:00
|
|
|
$(COMMON_VALA_FLAGS) \
|
2015-03-04 11:55:36 -03:00
|
|
|
$(TRANSACTION_VALA_FLAGS) \
|
2016-02-26 06:37:26 -03:00
|
|
|
--gresources=$(TRANSACTION_GRESOURCE_FILE) \
|
|
|
|
../resources/transaction_resources.c \
|
2014-10-22 13:44:02 -03:00
|
|
|
$(COMMON_SOURCES) \
|
2015-03-04 11:55:36 -03:00
|
|
|
$(TRANSACTION_SOURCES) \
|
2016-02-26 06:37:26 -03:00
|
|
|
$(PREFERENCES_SOURCES)
|
|
|
|
|
2017-07-29 10:35:04 -04:00
|
|
|
pamac-manager: libpamac.so ../resources/manager_resources.c history_dialog.vala manager_window.vala manager.vala
|
2016-02-26 06:37:26 -03:00
|
|
|
valac -o pamac-manager \
|
|
|
|
$(COMMON_VALA_FLAGS) \
|
2016-04-14 13:19:20 -03:00
|
|
|
$(PAMAC_LIB_FLAGS) \
|
2016-02-26 06:37:26 -03:00
|
|
|
--pkg=gtk+-3.0 \
|
|
|
|
--pkg=gdk-3.0 \
|
2017-09-09 05:23:59 -03:00
|
|
|
--pkg=libsoup-2.4 \
|
2016-02-26 06:37:26 -03:00
|
|
|
--gresources=$(MANAGER_GRESOURCE_FILE) \
|
|
|
|
../resources/manager_resources.c \
|
2017-07-29 10:35:04 -04:00
|
|
|
history_dialog.vala \
|
2014-10-22 13:44:02 -03:00
|
|
|
manager_window.vala \
|
|
|
|
manager.vala
|
|
|
|
|
2016-05-18 10:25:31 -04:00
|
|
|
pamac-install: libpamac.so ../resources/installer_resources.c progress_dialog.vala installer.vala
|
2015-04-12 11:04:30 -03:00
|
|
|
valac -o pamac-install \
|
2014-10-22 13:44:02 -03:00
|
|
|
$(COMMON_VALA_FLAGS) \
|
2016-04-14 13:19:20 -03:00
|
|
|
$(PAMAC_LIB_FLAGS) \
|
2016-02-26 06:37:26 -03:00
|
|
|
--pkg=gtk+-3.0 \
|
2016-05-18 10:25:31 -04:00
|
|
|
--gresources=$(INSTALLER_GRESOURCE_FILE) \
|
|
|
|
../resources/installer_resources.c \
|
|
|
|
progress_dialog.vala \
|
2014-10-22 13:44:02 -03:00
|
|
|
installer.vala
|