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


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

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

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

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

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


desc
@Makefile for calc -w- cold stowage
@


1.5
log
@*** empty log message ***
@
text
@CC=g++
MYSQLLIB=-L/usr/local/mysql/lib/
MYSQLINC=-I/usr/local/mysql/include/
INCLUDES=${MYSQLINC} -Iinclude/
LIBPATH=${MYSQLLIB} -Llib/
HEADERS=row.h station.h module.h rack.h
OBJECTS=rack.o module.o station.o row.o
SOURCES=calc.cpp module.cpp rack.cpp row.cpp station.cpp test.cpp
LIBS=-lresultset -lmysqlclient -lz
DEFINES=-DRELEASE
DEBUG=-g

.PHONY: all Makefile

all: test calc

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

%.o: %.cpp ${HEADERS}
	${CC} ${DEBUG} -c $< -o $@@ ${DEFINES} ${INCLUDES}
%.cpp:
	co -M $@@
%.h:
	co -M $@@
clean:
	rm -f *.o *.stackdump *~ calc test

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


1.4
log
@As of 1.2, we don't need resultset.h in ${HEADERS}
@
text
@d2 4
a5 2
LIBPATH=-L/usr/local/mysql/lib/ -L/usr/local/resultset/lib
INCLUDES=-I/usr/local/mysql/include -I/usr/local/resultset/include
@


1.3
log
@*** empty log message ***
@
text
@d4 1
a4 1
HEADERS=row.h station.h module.h rack.h resultset.h
@


1.2
log
@Now reads resultset library from /usr/local/resultset, not from here. This is better organized, although it might make it harder to use RCS elsewhere with this (elsewhere="not Unix").
@
text
@a14 1
# Executables
@


1.1
log
@Initial revision
@
text
@d2 2
a3 2
MYSQLINC=-I/usr/local/mysql/include
MYSQLLIB=-L/usr/local/mysql/lib/
d5 3
a7 3
OBJECTS=rack.o module.o station.o row.o resultset.o
SOURCES=calc.cpp module.cpp rack.cpp resultset.cpp resultsettester.cpp row.cpp station.cpp test.cpp
LIBRARIES=-lmysqlclient -lz
d9 1
d17 1
a17 1
	${CC} -o calc calc.o rack.o module.o row.o station.o resultset.o ${DEFINES} ${MYSQLLIB} ${LIBRARIES}
d19 1
a19 1
	${CC} -o test test.o rack.o module.o station.o resultset.o row.o ${DEFINES} ${MYSQLLIB} ${LIBRARIES}
d22 1
a22 1
	${CC} -c $< -o $@@ ${DEFINES} ${MYSQLINC}
d28 1
a28 1
	rm -f *.o *.stackdump *~ calc test printdata
@
