$OpenBSD: patch-src_mtest_Makefile,v 1.2 2001/03/19 17:50:28 wilfried Exp $
--- src/mtest/Makefile.orig	Wed Oct 25 01:55:39 2000
+++ src/mtest/Makefile	Mon Mar 19 17:43:25 2001
@@ -18,25 +18,17 @@
 # CPYRIGHT, included with this Distribution.
 
 
-C = ../c-client
-CCLIENTLIB = $C/c-client.a
 SHELL = /bin/sh
 
-# Get local definitions from c-client directory
-
-CC = `cat $C/CCTYPE`
-CFLAGS = -I$C `cat $C/CFLAGS`
-LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
+CFLAGS += -I$(PREFIX)/include/c-client
+LDFLAGS += -L$(PREFIX)/lib -lc-client -lssl -lcrypto
 
 all:	mtest
 
-mtest: $(CCLIENTLIB) mtest.o
+mtest: mtest.o
 	$(CC) $(CFLAGS) -o mtest mtest.o $(LDFLAGS)
 
-mtest.o: $C/mail.h $C/misc.h $C/osdep.h $C/rfc822.h $C/smtp.h $C/nntp.h
-
-$(CCLIENTLIB):
-	cd $C;make
+mtest.o:
 
 clean:
 	rm -f *.o mtest || true
