X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bigscreen%2FMakefile;h=07177b6f1034cd8ec3e0bc00b15c693f7016f3b2;hb=8963fce7337a09bdcfea051a81c0c3d9281acd6e;hp=f430885a8217213a8436cab570740f73297718b2;hpb=a0588b4cbd8b25d32e958f9f9f8383efdc44683b;p=ccbs diff --git a/bigscreen/Makefile b/bigscreen/Makefile index f430885..07177b6 100644 --- a/bigscreen/Makefile +++ b/bigscreen/Makefile @@ -1,14 +1,21 @@ CC=gcc CXX=g++ -LIBS=-lGL -lX11 -lXext -lXxf86vm -CCBS_BIGSCREEN_OBJS=ccbs_bigscreen.o glwindow.o +CPPFLAGS=-I/usr/include/postgresql $(shell freetype-config --cflags) -Itinyptc/ +CXXFLAGS=-g -Wall +LDFLAGS=-L/usr/X11R6/lib +LIBS=$(shell freetype-config --libs) $(shell libpq3-config) -lpqxx tinyptc/libtinyptc.a -lX11 +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 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