head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2022.01.29.14.18.13;	author jmccue;	state Exp;
branches;
next	1.1;

1.1
date	2004.12.03.20.17.25;	author jmccue;	state Exp;
branches;
next	;


desc
@Original
@


1.2
log
@fixed db build
@
text
@LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(LEXLIB) -lm

XCOMM CFLAGS = -O2 -pipe

OBJS = allow.o      drawing.o    load.o    rollout.o  \
       decision.o   edit.o       misc.o    save.o     \
       diawin.o     filemenu.o   popup.o   xgammon.o

SRCS = allow.c      drawing.c    load.c    rollout.c  \
       decision.c   edit.c       misc.c    save.c     \
       diawin.c     filemenu.c   popup.c   xgammon.c

ComplexProgramTarget(xgammon)
InstallAppDefaults(XGammon)
MakeDirectories(install, $(LIBDIR)/xgammon)
InstallNonExec(lib/xgammon.db, $(LIBDIR)/xgammon)
MANSUFFIX = 6

xgammon.o:      xgammon.c
	$(CC) $(CFLAGS) -DDATABASE=\"$(LIBDIR)/xgammon/xgammon.db\" -c xgammon.c

load.c: load.l
	$(LEX) load.l
	$(MV) lex.yy.c load.c

lib/xgammon.db:
	@@echo "compile database creating program"
	$(CC) lib/db.c -o lib/db
	@@echo "done.."
	@@echo "starting it"
	@@echo "creating the database needed about 3 - 5 hours"
	@@echo "on the old 386sx it had its first start :-)"
	@@echo "tell you when it is complete"
	cd lib; ./db; cd ..
	@@echo "Database complete"

XGammon.ad:     xgammon.ad
	$(LN) xgammon.ad XGammon.ad

xgammon.man:    xgammon.6
	$(LN) xgammon.6 xgammon.man


all:: lib/xgammon.db

install:: lib/xgammon.db

clean::
	$(RM) lib/db.o lib/db
@


1.1
log
@Initial revision
@
text
@d34 1
a34 1
	cd lib; db; cd ..
@
