base10.c added and set_limit changed
* base10: Divides a value into a power of 10
* set_limit: parameter changed to MB Values.
committer: Markus Bröker <mbroeker@largo.homelinux.org>
CC=g++
CFLAGS=-Wall -O2 -ansi -Iinclude
TARGET=\
mysql_db \
postgresql_db
OBJECTS=\
main.o \
console.o
.SUFFIXES: .cpp
.cpp.o:
$(CC) -c $(CFLAGS) $<
all: $(TARGET)
mysql_db: mysql_db.o $(OBJECTS)
$(CC) $< $(OBJECTS) -lmysqlclient -o $@
rm -f main.o
postgresql_db: postgresql_db.o $(OBJECTS)
$(CC) -c $(CFLAGS) -DWITH_POSTGRESQL main.cpp
$(CC) $< $(OBJECTS) -lpq -o $@
rm -f main.o
.PHONY: clean
clean:
rm -f *.o;
rm -f *~ include/*~
rm -f $(TARGET)