# Name: Makefile
# Project: SSL Proxy
# Author: Christian Starkjohann <cs@obdev.at>
# Creation Date: 1998-06-12
# Tabsize: 4
# Copyright: (c) 1998 by Christian Starkjohann, all rights reserved.
#    sslproxy is distributed under the terms of the GNU General Public
#    License (GPL) version 2.0.
# This Revision: $Id: Makefile,v 1.3 2000/01/29 16:35:46 cs Exp $


# if you use cc, remove the -Wall and -g options
CC= gcc

SSLROOT= /usr/local/openssl

CFLAGS= -Wall -I$(SSLROOT)/include -O
# for Solaris 2.x add -DSOLARIS2, for SunOS add -DSUNOS and for HP-UX add
# -DHP to the CFLAGS variable

LIBS = -L$(SSLROOT)/lib -lssl -lcrypto

OBJ =	sslproxy.o

XNAME =	sslproxy

all: $(XNAME)

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

clean:
	rm -f $(OBJ) $(XNAME)

$(XNAME):$(OBJ)
	$(CC) $(CFLAGS) -o $@ $(OBJ) $(LIBS)
