#
# Makfile for G0LGS's autoresp server
#

VERS=0.11
VDATE=(17-Jun-2002)

# for 7.00
#BINDIR = /home/xfbb/bin
#CFLAGS = -Wall -O2 -g -DV700 -DVersion='"$(VERS)"' -DVdate='"$(VDATE)"'

# for 7.01+
BINDIR = /usr/lib/fbb/server
CFLAGS = -Wall -O2 -g -DVersion='"$(VERS)"' -DVdate='"$(VDATE)"'

all: autoresp

CC = gcc
LD = gcc
LIBS =

# Static
LDFLAGS = -static-libgcc
# Dynamic
#LDFLAGS =

.c.o:
		$(CC) $(CFLAGS) -c $<

autoresp:	Makefile autoresp.o utils.o
		$(LD) $(LDFLAGS) -o autoresp autoresp.o utils.o $(LIBS)

autoresp.o:	Makefile autoresp.c

utils.o:	Makefile utils.c utils.h

install:	all
		install -m 750 --strip autoresp $(BINDIR)

config:	
		install -m 640 autoresp.msg $(BINDIR)

clean:
		rm -f core autoresp *.o *.~*

dist:		clean
		@tar -zcvf g0lgs-autoresp-$(VERS).tar.gz Makefile CHANGES README autoresp.* utils.*
		@echo g0lgs-autoresp-$(VERS).tar.gz Created
