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


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

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

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

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


desc
@Makefile for ResultSet library
@


1.4
log
@Added "install" target
@
text
@CC=g++
BASE=/usr/local/resultset
HEADERS=resultset.h
SOURCES=resultset.cpp
OBJECTS=resultset.o
INCLUDES=-I/usr/local/mysql/include
DEFINES=
DEBUG=-g

.PHONY: all Makefile install

all: libresultset.a

libresultset.a: resultset.o ${OBJECTS}
	libtool -o libresultset.a ${OBJECTS}
	ranlib libresultset.a

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

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

clean:
	rm -f *.o libresultset.a

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

install: all
	rm -rf ${BASE} # This may be dangerous?
	mkdir -p ${BASE}
	mkdir -p ${BASE}/include
	mkdir -p ${BASE}/lib
	cp -p ${HEADERS} ${BASE}/include
	cp -p libresultset.a ${BASE}/lib
@


1.3
log
@More copy/paste errors.
@
text
@d2 1
d10 1
a10 1
.PHONY: all Makefile
d31 8
@


1.2
log
@Various copy/paste errors.
@
text
@d2 1
a2 1
HEADERS=resultset.h available.h
@


1.1
log
@Initial revision
@
text
@d3 2
a4 3
SOURCES=selsuccess.cpp available.cpp
OBJECTS=available.o
LIBS=-lresultset -lmysqlclient -lz
a5 1
LIBPATH=-L/usr/local/mysql/lib -L.
@
