X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bigscreen%2FMakefile;h=b137750ecf6af1f979f453cc246d6baed7aab60f;hb=478ab340150034e545e3ed551ff068607d49d35b;hp=33e8478f1221f38711a9b4eb2d28b43497184d68;hpb=2ec0a447d417da176443f8deb94e43befd7ad641;p=ccbs diff --git a/bigscreen/Makefile b/bigscreen/Makefile index 33e8478..b137750 100644 --- a/bigscreen/Makefile +++ b/bigscreen/Makefile @@ -1,28 +1,25 @@ CC=gcc CXX=g++ -CPPFLAGS=-I/usr/include/postgresql $(shell freetype-config --cflags) -Itinyptc/ -CXXFLAGS=-g -Wall +CPPFLAGS=-I/usr/include/postgresql $(shell freetype-config --cflags) $(shell sdl-config --cflags) +CXXFLAGS=-O2 -Wall -g LDFLAGS=-L/usr/X11R6/lib -LIBS=$(shell freetype-config --libs) $(shell libpq3-config) -lpqxx tinyptc/libtinyptc.a -lX11 -lXext +LIBS=$(shell freetype-config --libs) -lpqxx $(shell sdl-config --libs) CCBS_BIGSCREEN_SQL_OBJS=fetch_current_tournament.o fetch_list_of_active_groups.o \ + fetch_list_of_finished_groups.o \ fetch_max_score_for_songs.o fetch_max_score_for_players.o fetch_group.o \ fetch_needs_update.o fetch_highscore.o fetch_top_scores_for_tournament.o \ - fetch_auxilliary_screens.o -CCBS_BIGSCREEN_SCREEN_OBJS=groupscreen.o top10scorescreen.o splitscreen.o rotatescreen.o screen.o + fetch_top_chosen_songs_for_tournament.o fetch_auxilliary_screens.o +CCBS_BIGSCREEN_SCREEN_OBJS=groupscreen.o top10scorescreen.o top5chosenscreen.o splitscreen.o rotatescreen.o screen.o CCBS_BIGSCREEN_MAIN_OBJS=ccbs_bigscreen.o flagtrigger.o widestring.o fonts.o CCBS_BIGSCREEN_OBJS=$(CCBS_BIGSCREEN_SQL_OBJS) $(CCBS_BIGSCREEN_SCREEN_OBJS) $(CCBS_BIGSCREEN_MAIN_OBJS) all: ccbs-bigscreen -tinyptc/libtinyptc.a: - $(MAKE) -C tinyptc - -ccbs-bigscreen: $(CCBS_BIGSCREEN_OBJS) tinyptc/libtinyptc.a +ccbs-bigscreen: $(CCBS_BIGSCREEN_OBJS) $(CXX) -o ccbs-bigscreen $(CCBS_BIGSCREEN_OBJS) $(LDFLAGS) $(LIBS) clean: $(RM) $(CCBS_BIGSCREEN_OBJS) ccbs-bigscreen - $(MAKE) -C tinyptc clean .PHONY: clean