Shape text using Pango and HarfBuzz; gives us nice ligatures and exotic scripts.
[ccbs] / bigscreen / Makefile
1 CC=gcc
2 CXX=g++
3 CPPFLAGS=-I/usr/include/postgresql $(shell freetype-config --cflags) $(shell sdl-config --cflags) $(shell pkg-config harfbuzz-icu --cflags) $(shell pkg-config pango --cflags) $(shell pkg-config pangoft2 --cflags)
4 CXXFLAGS=-O2 -Wall -g
5 LDFLAGS=-L/usr/X11R6/lib
6 LIBS=$(shell freetype-config --libs) -lpqxx $(shell sdl-config --libs) $(shell pkg-config harfbuzz-icu --libs) $(shell pkg-config pango --libs) $(shell pkg-config pangoft2 --libs)
7
8 CCBS_BIGSCREEN_SQL_OBJS=fetch_current_tournament.o fetch_list_of_active_groups.o \
9         fetch_list_of_finished_groups.o \
10         fetch_max_score_for_songs.o fetch_max_score_for_players.o fetch_group.o \
11         fetch_needs_update.o fetch_highscore.o fetch_top_scores_for_tournament.o \
12         fetch_top_chosen_songs_for_tournament.o fetch_auxilliary_screens.o
13 CCBS_BIGSCREEN_SCREEN_OBJS=groupscreen.o top10scorescreen.o top5chosenscreen.o splitscreen.o rotatescreen.o screen.o
14 CCBS_BIGSCREEN_MAIN_OBJS=ccbs_bigscreen.o flagtrigger.o widestring.o fonts.o theme.o
15 CCBS_BIGSCREEN_OBJS=$(CCBS_BIGSCREEN_SQL_OBJS) $(CCBS_BIGSCREEN_SCREEN_OBJS) $(CCBS_BIGSCREEN_MAIN_OBJS)
16
17 all: ccbs-bigscreen
18
19 ccbs-bigscreen: $(CCBS_BIGSCREEN_OBJS)
20         $(CXX) -o ccbs-bigscreen $(CCBS_BIGSCREEN_OBJS) $(LDFLAGS) $(LIBS)
21
22 clean:
23         $(RM) $(CCBS_BIGSCREEN_OBJS) ccbs-bigscreen
24
25 .PHONY: clean