head	1.6;
access;
symbols;
locks
	randrews:1.6; strict;
comment	@# @;


1.6
date	2004.05.05.09.43.09;	author randrews;	state Exp;
branches;
next	1.5;

1.5
date	2004.04.23.08.24.55;	author randrews;	state Exp;
branches;
next	1.4;

1.4
date	2004.04.06.04.56.29;	author randrews;	state Exp;
branches;
next	1.3;

1.3
date	2004.04.02.02.38.09;	author randrews;	state Exp;
branches;
next	1.2;

1.2
date	2004.04.02.02.13.31;	author randrews;	state Exp;
branches;
next	1.1;

1.1
date	2004.04.02.02.06.15;	author randrews;	state Exp;
branches;
next	;


desc
@Makefile for brain, facility level
@


1.6
log
@Added combo.o/h/cpp
@
text
@CC=g++
LIBPATH=-L/usr/local/mysql/lib/ -L/usr/local/resultset/lib
INCLUDES=-I/usr/local/mysql/include -I/usr/local/resultset/include
HEADERS=filereader.h table.h combo.h
OBJECTS=filereader.o table.o combo.o
SOURCES=facilities.cpp filereader.cpp filereadtester.cpp table.cpp combo.cpp
LIBS=-lresultset -lmysqlclient -lz
DEFINES=-DRELEASE
DEBUG=-g

.PHONY: all clean
.SUFFIXES:

all: facilities #filereadtester

facilities: facilities.o ${OBJECTS}
	${CC} ${DEBUG} facilities.o ${OBJECTS} -o facilities ${DEFINES} ${LIBS} ${LIBPATH}

filereadtester: filereadtester.o ${OBJECTS}
	${CC} ${DEBUG} filereadtester.o ${OBJECTS} -o filereadtester ${DEFINES} ${LIBS} ${LIBPATH}

%.cpp:
	co -M $@@
%.h:
	co -M $@@

%.o: %.cpp ${HEADERS}
	${CC} ${DEBUG} -c $< -o $@@ ${INCLUDES} ${DEFINES}

clean:
	rm -f *.o facilities filereadtester

archive: ${SOURCES} ${HEADERS}
	tar -czvf facilities.tar.gz facilities.cpp ${SOURCES} ${HEADERS} Makefile
@


1.5
log
@Typo in target archive dependencies.
@
text
@d4 3
a6 3
HEADERS=filereader.h table.h
OBJECTS=filereader.o table.o
SOURCES=facilities.cpp filereader.cpp filereadtester.cpp table.cpp
@


1.4
log
@Fixed weird intermittent bug where make thinks it knows how to make .o files better than I do. .SUFFIXES: tells make that it has no implicit rules.
@
text
@d33 1
a33 1
archive: ${SOURCES} ${HEADER}
@


1.3
log
@Added table.o &c to separate table creation code (which is long, since filereader is broken on Windows)
@
text
@d11 2
a12 1
.PHONY: all Makefile
d14 1
a14 1
all: facilities filereadtester
d17 1
a17 1
	${CC} ${DEBUG} facilities.o ${OBJECTS} -o facilities ${LIBS} ${LIBPATH}
d20 1
a20 4
	${CC} ${DEBUG} filereadtester.o ${OBJECTS} -o filereadtester ${LIBS} ${LIBPATH}

%.o: %.cpp ${HEADERS}
	${CC} ${DEBUG} -c $< -o $@@ ${INCLUDES}
d26 3
@


1.2
log
@Updated, to deal with resultset as a library, and an archive target
@
text
@d4 3
a6 3
HEADERS=filereader.h
OBJECTS=filereader.o
SOURCES=facilities.cpp filereader.cpp filereadtester.cpp 
d11 1
a11 1
.PHONY: all Makefile archive
d33 1
a33 1
	tar -czvf facilities.cpp ${SOURCES} ${HEADERS} Makefile
@


1.1
log
@Initial revision
@
text
@d2 10
a11 3
MYSQLINC=-I/usr/local/mysql/include
MYSQLLIB=-L/usr/local/mysql/lib
HEADERS=filereader.h resultset.h
d13 1
a13 1
.PHONY: all
d15 2
a16 1
all: facilities filereadtester resultsettester
d18 2
a19 8
facilities: facilities.o resultset.o filereader.o
	${CC} facilities.o resultset.o filereader.o -o facilities ${MYSQLLIB} -lmysqlclient -lz

filereadtester: filereader.o filereadtester.o
	${CC} filereadtester.o filereader.o -o filereadtester

resultsettester: resultset.o resultsettester.o
	${CC} resultsettester.o resultset.o -o resultsettester ${MYSQLLIB} -lmysqlclient -lz
d22 1
a22 1
	${CC} -g -c $< -o $@@ ${MYSQLINC}
d30 4
a33 1
	rm -f *.o facilities resultsettester filereadtester
@
