Makefile 1.37 KB
Newer Older
1

2
TARGET = shotwell
3

4
# This takes care of a warning message generated by the use of Math.round in image_util.vala
5
VALAC_OPTS =--Xcc=-std=c99 -g --enable-checking
6 7 8 9 10 11

SRC_FILES = \
	main.vala \
	AppWindow.vala \
	CollectionPage.vala \
	Thumbnail.vala \
12
	DatabaseTables.vala \
13
	ThumbnailCache.vala \
14
	image_util.vala \
15 16
	CollectionLayout.vala \
	PhotoPage.vala \
17
	Exif.vala \
18 19
	Page.vala \
	ImportPage.vala \
20 21
	GPhoto.vala \
	SortedList.vala
22 23
	
VAPI_FILES = \
24
	libexif.vapi \
25 26
	fstream.vapi \
	libgphoto2.vapi
27

28
RESOURCE_FILES = \
29 30 31
	photo.ui \
	collection.ui \
	import.ui
32
    
33 34 35
VAPI_DIRS = \
	.

36 37
HEADER_DIRS = \
	.
38 39 40

PKGS = \
	gtk+-2.0 \
41
	sqlite3 \
42
	vala-1.0 \
43
	libexif \
44
	fstream \
45 46
	libgphoto2 \
	hal \
47 48
	unique-1.0 \
	gnome-vfs-2.0
49 50

all: $(TARGET)
Jim Nelson's avatar
Jim Nelson committed
51 52

clean:
53
	rm -f $(TARGET)
Jim Nelson's avatar
Jim Nelson committed
54

55 56 57 58 59 60 61 62 63 64 65 66
install: $(TARGET) shotwell.desktop
	cp $(TARGET) /usr/local/bin
	mkdir -p /usr/local/share/shotwell/icons
	cp icons/* /usr/local/share/shotwell/icons
	$(foreach res,$(RESOURCE_FILES),cp $(res) /usr/local/share/shotwell;)
	cp shotwell.desktop /usr/share/applications

uninstall:
	rm -f /usr/local/bin/$(TARGET)
	rm -fr /usr/local/share/shotwell
	rm -f /usr/share/applications/shotwell.desktop

67 68 69 70 71 72 73
$(TARGET): $(SRC_FILES) $(VAPI_FILES) Makefile
	valac $(VALAC_OPTS) \
	$(foreach pkg,$(PKGS),--pkg=$(pkg)) \
	$(foreach vapidir,$(VAPI_DIRS), --vapidir=$(vapidir)) \
	$(foreach hdir,$(HEADER_DIRS),-X -I$(hdir)) \
	$(SRC_FILES) \
	-o $(TARGET)
Jim Nelson's avatar
Jim Nelson committed
74