# Generated automatically from Makefile.in by configure.
# Makefile for tircproxy.
#

SHELL=/bin/sh
CC=cc
CFLAGS=-fno-common
LDFLAGS=
LIBS=-lcrypt -lwrap 
INSTALL=/usr/bin/install -c -o root -g wheel
prefix=/usr/local
exec_prefix=${prefix}
TARGETNAME=${exec_prefix}/sbin/tircproxy
STRIP=/usr/bin/strip

ALL_CFLAGS=-Wall -I. -I. $(CFLAGS) -I/sys -I/usr/src/sys

.SUFFIXES:
.SUFFIXES: .c .o

.c.o:	Makefile config.h tircproxy.h
	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<

tircproxy:	tircproxy.o
	$(CC) $(LDFLAGS) tircproxy.o -o $@ $(LIBS)

tircproxy.static:	tircproxy.o
	$(CC) $(LDFLAGS) -static -O3 tircproxy.o -o $@ $(LIBS)
	strip $@
#	pgp -sba $@ -u 3004

manual:
	@(cd docs; make all)

all:	tircproxy tircproxy.static

install:	tircproxy
	$(INSTALL) -o bin -g bin -m 555 tircproxy $(TARGETNAME)
	$(INSTALL) -o root -g man -m 644 tircproxy.8 $(prefix)/man/man8/

install-strip: install
	$(STRIP) $(TARGETNAME)

clean:
	rm -f tircproxy.o tircproxy tircproxy.static *~ .*~ *.bak *.tar.gz*
	@(cd docs; make clean)

dist-clean:	clean
	rm -f config.h config.cache config.status config.log *.asc

dist:	dist-clean
	pgp -sba tircproxy.c -u 3004
	pgp -sba tircproxy.h -u 3004
	(cd ..;tar cvfz tircproxy-0.4.tar.gz tircproxy-0.4 -X tircproxy-0.4/.nodist)
	mv ../tircproxy-0.4.tar.gz .
	pgp -sba tircproxy-0.4.tar.gz -u 3004

dist-rpm:	dist	
	su -c "cp tircproxy-0.4.tar.gz /usr/src/redhat/SOURCES && rpm -vv --sign -ba tircproxy.spec"

# Dependancy stuff & auto configure
tircproxy.o: tircproxy.h config.h

config.h: configure Makefile.in
	@rm -f config.h
	./configure
	@echo
	@echo "Now please run make again, ignore the following error message."
	@echo
	@false

Makefile: config.h

configure: configure.in
	autoconf


syntax highlighted by Code2HTML, v. 0.9.1