# quickie last100g makefile. you need to make INCLPATH point to your 
# dd.h too in order to compile with success --flower

# set this to your dd source path.
DDSRC      = /home/bbs

# set this to the number of uploads to process.
MAXUPLOADS = 1000

# set this to fit your bbs-setup.
BBSUSER    = bbs
BBSGROUP   = bbs
BBSHOME    = /home/bbs


CPP        = g++
CFLAGS     = -O2 -Wall
INCLPATH   = -I/home/bbs/include -I.
LDFLAGS    = -L/home/bbs/lib -ldd

all:	last100g

install: last100g
	install -o $(BBSUSER) -g $(BBSGROUP) last100g $(BBSHOME)/utils

clean:
	rm -f *~ *.o last100g

last100g: last100g.cpp
	$(CPP) -o $@ $< $(INCLPATH) -DMAXUPLOADS=$(MAXUPLOADS) $(LDFLAGS)
