# we include sgfc/main.o, but it should have been compiled so that # the main from sgfc is #ifdef'd out SGFCOBJS=../sgfc/execute.o ../sgfc/gameinfo.o ../sgfc/load.o ../sgfc/main.o \ ../sgfc/parse.o ../sgfc/parse2.o ../sgfc/properties.o ../sgfc/save.o \ ../sgfc/util.o PREFIX=@prefix@ GTKGOBOARDOBJS=../gtkgoboard/gtkgoboard.o KENTOUOBJS=kentou.o OBJS=$(SGFCOBJS) $(GTKGOBOARDOBJS) $(KENTOUOBJS) CC=@CC@ # -pedantic causes problems with gtk 1.2.0 redhat 4.2 # also -pedantic causes problems with gtkgoboard on redhat 6.1 CFLAGS=-ansi -Wall -Wstrict-prototypes -D_SVID_SOURCE -D_BSD_SOURCE \ `gtk-config --cflags` @CFLAGS@ -DSOUND_DIR=\"$(PREFIX)/lib\" kentou: $(OBJS) $(CC) -o kentou $(OBJS) `gtk-config --libs` @LIBS@ run: kentou #./kentou small.sgf ./kentou test/pass.sgf clean: rm -f $(OBJS) kentou core install: cp kentou $(PREFIX)/bin/. cp kentou.gtkrc $(PREFIX)/lib/. cp kentou.xpm $(PREFIX)/lib/. if echo "$(CFLAGS)" | grep HAVE_ESD > /dev/null; then \ cp kentou-correct.wav $(PREFIX)/lib/.; \ cp kentou-close.wav $(PREFIX)/lib/.; \ fi