#
# smtp_logger
# Nico Schottelius
#

PROG=smtp_logger
DESTINATION=/usr/sbin


CC=gcc -pipe $(DEBUG) $(OPTIMIZE)
CFLAGS=-Wall -Werror
#LDFLAGS=-static
# for some unices
#LDFLAGS=-static -lresolv -lsocket
# either debug or OPTIMIZE
#DEBUG=-g -DDEBUG
OPTIMIZE=-Os -pipe

HEADER=smtp_logger.h
OBJ=do_filter.o handle_con.o open_forward.o smtp_logger.o sig_child.o \
    do_argv.o save_data.o tools.o

all: $(PROG)
	#strip -s -R .comment -R .note $<

install:
	install $(PROG) $(DESTINATION)

$(OBJ): $(HEADER) Makefile
$(PROG): $(OBJ)

clean:
	rm -f $(PROG)  *.o

include Makefile.git

reldir=/home/users/nico/privat/computer/net/netzseiten/www.nico.schottelius.org/src/software/smtp_logger
release: $(ARCHIVE)
	cp $(ARCHIVE) $(reldir)
