Makefile 777 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
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 17 18 19
	CollectionLayout.vala \
	PhotoPage.vala \
	Exif.vala
	
VAPI_FILES = \
20 21
	libexif.vapi \
	fstream.vapi
22 23 24 25 26

VAPI_DIRS = \
	.

HEADER_DIRS =
27 28 29

PKGS = \
	gtk+-2.0 \
30
	sqlite3 \
31
	vala-1.0 \
32 33
	libexif \
	fstream
34 35

all: $(TARGET)
Jim Nelson's avatar
Jim Nelson committed
36 37

clean:
38
	rm -f $(TARGET)
Jim Nelson's avatar
Jim Nelson committed
39

40 41 42 43 44 45 46
$(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
47