# Generated automatically from Makefile.in by configure.
# SocksCleaner ./source Makefile (C) Nedelcho Stanev
# $Id: Makefile.in,v 1.0.0 2000/03/03 22:34:58 decho stable $

CC = gcc
CFLAGS = -g -O2 -D_REENTRANT
LDFLAGS = -L../libString 
INCLUDE = -I../include
# DEFS =
LIBS = -lString  -lnsl -lcrypt -lpthread
LIBDEPS = ../libString/libString.a
MKDEP = $(CC) -MM

RM = /bin/rm -f

IDIR = ../include

DEPENDFILE = .depend

SOURCES =                  \
  alloc.c                  \
  conf.c                   \
  scleaner.c               \
  init.c                   \
  log.c                    \
  match.c                  \
  misc.c                   \
  mystring.c               \
  proxy.c                  \
  server.c                 \
  settings.c               \
  sock.c                   \
  timer.c                  \
  timestr.c

OBJECTS = ${SOURCES:.c=.o} version.o

# Binaries

SCLEANER = ../bin/sockscleaner

all: $(SCLEANER)

$(SCLEANER): $(OBJECTS) $(LIBDEPS)
	$(CC) -o $(SCLEANER) $(OBJECTS) $(LDFLAGS) $(LIBS)

depend:
	$(MKDEP) $(INCLUDE) $(SOURCES) > $(DEPENDFILE)

clean:
	$(RM) $(SCLEANER) $(OBJECTS)

distclean: clean
	$(RM) Makefile

# $(DEPENDFILE): depend

.SUFFIXES: .c .o

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

## Dependencies

version.o: version.c
	$(CC) $(CFLAGS) $(INCLUDE) -DVERSION=\"$(VERSION)\" -c $<

include $(DEPENDFILE)

# End of source/Makefile
