Only allocate space for four digits in the score screen -- if somebody actually gets...
[ccbs] / bigscreen / Makefile
index a6a855b..b6697ab 100644 (file)
@@ -1,16 +1,21 @@
 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
+CCBS_BIGSCREEN_OBJS=ccbs_bigscreen.o flagtrigger.o widestring.o fetch_current_tournament.o fetch_list_of_active_groups.o fetch_group.o fonts.o groupscreen.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