Split the bigscreen objects in the Makefile into slightly more manageable groups.
[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 -lXext
7
8 CCBS_BIGSCREEN_SQL_OBJS=fetch_current_tournament.o fetch_list_of_active_groups.o \
9         fetch_max_score_for_songs.o fetch_max_score_for_players.o fetch_group.o \
10         fetch_needs_update.o fetch_highscore.o fetch_top_scores_for_tournament.o \
11         fetch_auxilliary_screens.o
12 CCBS_BIGSCREEN_SCREEN_OBJS=groupscreen.o top10scorescreen.o splitscreen.o rotatescreen.o screen.o
13 CCBS_BIGSCREEN_MAIN_OBJS=ccbs_bigscreen.o flagtrigger.o widestring.o fonts.o
14 CCBS_BIGSCREEN_OBJS=$(CCBS_BIGSCREEN_SQL_OBJS) $(CCBS_BIGSCREEN_SCREEN_OBJS) $(CCBS_BIGSCREEN_MAIN_OBJS)
15
16 all: ccbs-bigscreen
17
18 tinyptc/libtinyptc.a:
19         $(MAKE) -C tinyptc
20
21 ccbs-bigscreen: $(CCBS_BIGSCREEN_OBJS) tinyptc/libtinyptc.a
22         $(CXX) -o ccbs-bigscreen $(CCBS_BIGSCREEN_OBJS) $(LDFLAGS) $(LIBS)
23
24 clean:
25         $(RM) $(CCBS_BIGSCREEN_OBJS) ccbs-bigscreen
26         $(MAKE) -C tinyptc clean
27
28 .PHONY: clean