Makefile 978 Bytes
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 20
	Page.vala \
	ImportPage.vala \
	GPhoto.vala
21 22
	
VAPI_FILES = \
23
	libexif.vapi \
24 25
	fstream.vapi \
	libgphoto2.vapi
26

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

HEADER_DIRS =
36 37 38

PKGS = \
	gtk+-2.0 \
39
	sqlite3 \
40
	vala-1.0 \
41
	libexif \
42
	fstream \
43 44
	libgphoto2 \
	hal \
45 46
	dbus-glib-1 \
	unique-1.0
47 48

all: $(TARGET)
Jim Nelson's avatar
Jim Nelson committed
49 50

clean:
51
	rm -f $(TARGET)
Jim Nelson's avatar
Jim Nelson committed
52

53 54 55 56 57 58 59
$(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
60