pamac-classic/src/Makefile

111 lines
3.7 KiB
Makefile
Raw Normal View History

2014-11-17 17:56:15 -03:00
COMMON_VALA_FLAGS = -X -w \
--pkg=libalpm \
2014-10-22 13:44:02 -03:00
--pkg=gio-2.0 \
--vapidir=../vapi \
--Xcc=-I../util \
-X -D_FILE_OFFSET_BITS=64 \
2014-10-30 10:44:09 -03:00
-X -DGETTEXT_PACKAGE="pamac" \
2014-10-22 13:44:02 -03:00
--target-glib=2.38
2015-03-04 11:55:36 -03:00
TRANSACTION_VALA_FLAGS = --pkg=json-glib-1.0 \
--pkg=gtk+-3.0 \
--pkg=gmodule-2.0 \
--pkg=gdk-3.0 \
--pkg=vte-2.91
2014-10-22 13:44:02 -03:00
COMMON_SOURCES = ../util/alpm-util.c \
2015-03-04 11:55:36 -03:00
common.vala \
2014-10-22 13:44:02 -03:00
pamac_config.vala \
2015-03-04 11:55:36 -03:00
mirrors_config.vala \
package.vala \
2014-10-22 13:44:02 -03:00
MANAGER_GRESOURCE_FILE = ../resources/pamac.manager.gresource.xml
UPDATER_GRESOURCE_FILE = ../resources/pamac.updater.gresource.xml
INSTALLER_GRESOURCE_FILE = ../resources/pamac.installer.gresource.xml
2015-03-04 11:55:36 -03:00
TRANSACTION_SOURCES = transaction.vala \
choose_provider_dialog.vala \
transaction_sum_dialog.vala \
transaction_info_dialog.vala \
preferences_dialog.vala \
progress_dialog.vala
2014-10-22 13:44:02 -03:00
binaries: pamac-refresh pamac-daemon pamac-tray pamac-updater pamac-manager pamac-install
clean:
rm -f *.c pamac-refresh pamac-daemon pamac-tray pamac-updater pamac-manager pamac-install
2014-11-30 12:51:33 -03:00
pamac-refresh: refresh.vala
valac -X -w -X -I/usr/include/glib-2.0 -X -I/usr/lib/glib-2.0/include -X -lglib-2.0 -o pamac-refresh \
2014-11-30 12:51:33 -03:00
--pkg=gio-2.0 \
refresh.vala
pamac-tray: ../util/alpm-util.c common.vala alpm_config.vala pamac_config.vala tray.vala
valac -X -w -X -I/usr/include/glib-2.0 -X -I/usr/lib/glib-2.0/include -X -lglib-2.0 -o pamac-tray \
--pkg=posix \
--pkg=libalpm \
2015-03-04 11:55:36 -03:00
--pkg=gio-2.0 \
--pkg=gtk+-3.0 \
--pkg=libnotify \
--vapidir=../vapi \
--Xcc=-I../util \
-X -D_FILE_OFFSET_BITS=64 \
2015-03-04 11:55:36 -03:00
-X -DGETTEXT_PACKAGE="pamac" \
../util/alpm-util.c \
2015-03-04 11:55:36 -03:00
common.vala \
alpm_config.vala \
2015-03-04 11:55:36 -03:00
pamac_config.vala \
tray.vala
pamac-daemon: ../vapi/libalpm.vapi ../vapi/polkit-gobject-1.vapi $(COMMON_SOURCES) alpm_config.vala alpm_utils.vala aur.vala daemon.vala
valac -X -w -X -I/usr/include/glib-2.0 -X -I/usr/lib/glib-2.0/include -X -lglib-2.0 -o pamac-daemon \
2014-10-22 13:44:02 -03:00
$(COMMON_VALA_FLAGS) \
2015-03-04 11:55:36 -03:00
--pkg=posix \
--pkg=json-glib-1.0 \
--pkg=libsoup-2.4 \
2014-10-22 13:44:02 -03:00
--pkg=polkit-gobject-1 \
--thread \
$(COMMON_SOURCES) \
2015-03-04 11:55:36 -03:00
alpm_config.vala \
aur.vala \
alpm_utils.vala \
2014-10-22 13:44:02 -03:00
daemon.vala
pamac-manager: ../vapi/libalpm.vapi $(COMMON_SOURCES) $(TRANSACTION_SOURCES) choose_dep_dialog.vala history_dialog.vala ../resources/manager_resources.c packages_model.vala manager_window.vala manager.vala
valac -X -w -X -I/usr/include/glib-2.0 -X -I/usr/lib/glib-2.0/include -X -lglib-2.0 -o pamac-manager \
2014-10-22 13:44:02 -03:00
$(COMMON_VALA_FLAGS) \
2015-03-04 11:55:36 -03:00
$(TRANSACTION_VALA_FLAGS) \
2014-10-22 13:44:02 -03:00
--gresources=$(MANAGER_GRESOURCE_FILE) \
$(COMMON_SOURCES) \
2015-03-04 11:55:36 -03:00
$(TRANSACTION_SOURCES) \
choose_dep_dialog.vala \
2014-10-22 13:44:02 -03:00
history_dialog.vala \
2014-11-17 17:56:15 -03:00
../resources/manager_resources.c \
2014-10-22 13:44:02 -03:00
packages_model.vala \
manager_window.vala \
manager.vala
2015-03-04 11:55:36 -03:00
pamac-updater: ../vapi/libalpm.vapi $(COMMON_SOURCES) $(TRANSACTION_SOURCES) ../resources/updater_resources.c updater_window.vala updater.vala
valac -X -w -X -I/usr/include/glib-2.0 -X -I/usr/lib/glib-2.0/include -X -lglib-2.0 -o pamac-updater \
2014-10-22 13:44:02 -03:00
$(COMMON_VALA_FLAGS) \
2015-03-04 11:55:36 -03:00
$(TRANSACTION_VALA_FLAGS) \
2014-10-22 13:44:02 -03:00
--gresources=$(UPDATER_GRESOURCE_FILE) \
$(COMMON_SOURCES) \
2015-03-04 11:55:36 -03:00
$(TRANSACTION_SOURCES) \
2014-11-17 17:56:15 -03:00
../resources/updater_resources.c \
2014-10-22 13:44:02 -03:00
updater_window.vala \
updater.vala
2015-03-04 11:55:36 -03:00
pamac-install: ../vapi/libalpm.vapi $(COMMON_SOURCES) $(TRANSACTION_SOURCES) ../resources/installer_resources.c installer.vala
valac -X -w -X -I/usr/include/glib-2.0 -X -I/usr/lib/glib-2.0/include -X -lglib-2.0 -o pamac-install \
2014-10-22 13:44:02 -03:00
$(COMMON_VALA_FLAGS) \
2015-03-04 11:55:36 -03:00
$(TRANSACTION_VALA_FLAGS) \
2014-10-22 13:44:02 -03:00
--gresources=$(INSTALLER_GRESOURCE_FILE) \
$(COMMON_SOURCES) \
2015-03-04 11:55:36 -03:00
$(TRANSACTION_SOURCES) \
2014-11-17 17:56:15 -03:00
../resources/installer_resources.c \
2014-10-22 13:44:02 -03:00
installer.vala