]> git.sesse.net Git - ccbs/blob - bigscreen/Makefile
Read max score for all players in one shot as well, with a new query and an index...
[ccbs] / bigscreen / Makefile
1 CC=gcc
2 CXX=g++
3 CPPFLAGS=-I/usr/include/postgresql $(shell freetype-config --cflags) -Itinyptc/
4 CXXFLAGS=-g -Wall
5 LDFLAGS=-L/usr/X11R6/lib
6 LIBS=$(shell freetype-config --libs) $(shell libpq3-config) -lpqxx tinyptc/libtinyptc.a -lX11
7 CCBS_BIGSCREEN_OBJS=ccbs_bigscreen.o flagtrigger.o widestring.o fetch_current_tournament.o fetch_list_of_active_groups.o fetch_max_score_for_songs.o fetch_max_score_for_players.o fetch_group.o fetch_needs_update.o fetch_highscore.o fonts.o groupscreen.o splitscreen.o rotatescreen.o screen.o
8
9 all: ccbs-bigscreen
10
11 tinyptc/libtinyptc.a:
12         $(MAKE) -C tinyptc
13
14 ccbs-bigscreen: $(CCBS_BIGSCREEN_OBJS) tinyptc/libtinyptc.a
15         $(CXX) -o ccbs-bigscreen $(CCBS_BIGSCREEN_OBJS) $(LDFLAGS) $(LIBS)
16
17 clean:
18         $(RM) $(CCBS_BIGSCREEN_OBJS) ccbs-bigscreen
19         $(MAKE) -C tinyptc clean
20
21 .PHONY: clean