X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2FMakefile;h=d58b48e24f53d408aa566d857e6ab141d3d84202;hp=a6a855bb459e398c19222f0da429f63dc618e72f;hb=295701bd0835259dcf72b57779e77eeded720baa;hpb=9a52077de6b9ebda35e2db899f0dda30c41fb7af diff --git a/bigscreen/Makefile b/bigscreen/Makefile index a6a855b..d58b48e 100644 --- a/bigscreen/Makefile +++ b/bigscreen/Makefile @@ -1,16 +1,29 @@ CC=gcc CXX=g++ -CXXFLAGS=-I/usr/include/postgresql +CPPFLAGS=-I/usr/include/postgresql $(shell freetype-config --cflags) -Itinyptc/ +CXXFLAGS=-g -Wall LDFLAGS=-L/usr/X11R6/lib -LIBS=-lGL -lX11 -lXext -lXxf86vm $(shell libpq3-config) -lpqxx -CCBS_BIGSCREEN_OBJS=ccbs_bigscreen.o glwindow.o +LIBS=$(shell freetype-config --libs) $(shell libpq3-config) -lpqxx tinyptc/libtinyptc.a -lX11 -lXext + +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_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 -ccbs-bigscreen: $(CCBS_BIGSCREEN_OBJS) +tinyptc/libtinyptc.a: + $(MAKE) -C tinyptc + +ccbs-bigscreen: $(CCBS_BIGSCREEN_OBJS) tinyptc/libtinyptc.a $(CXX) -o ccbs-bigscreen $(CCBS_BIGSCREEN_OBJS) $(LDFLAGS) $(LIBS) clean: $(RM) $(CCBS_BIGSCREEN_OBJS) ccbs-bigscreen + $(MAKE) -C tinyptc clean .PHONY: clean