pkgsrc/net/waste/patches/patch-aa
joerg 33d24ca22a Add DragonFly support. Use PTHREAD_* instead of -lpthread.
LDFLAGS is exported automatically,  but add -lmd for DragonFly.
2006-01-08 21:42:41 +00:00

28 lines
860 B
Text

$NetBSD: patch-aa,v 1.4 2006/01/08 21:42:42 joerg Exp $
--- /dev/null 2003-05-31 11:34:06.000000000 -0400
+++ Makefile 2003-05-31 11:52:33.000000000 -0400
@@ -0,0 +1,23 @@
+OBJS = asyncdns.o config.o connection.o filedb.o listen.o m_chat.o m_file.o m_keydist.o m_ping.o m_search.o m_upload.o mqueue.o mqueuelist.o netkern.o sha.o util.o xfers.o xferwnd.o srchwnd.o srvmain.o blowfish.o m_lcaps.o
+
+
+RSAOBJS = nn.o prime.o r_random.o rsa.o # md5c.o
+
+DEBUGFLAG = -s
+#CXXFLAGS = -O2 $(DEBUGFLAG) -pipe -march=pentiumpro
+#CFLAGS = -O2 $(DEBUGFLAG) -pipe -march=pentiumpro
+
+all: wastesrv
+
+
+wastesrv: $(OBJS) $(RSAOBJS)
+ $(CXX) $(DEBUGFLAG) -o wastesrv $(OBJS) $(RSAOBJS) ${LDFLAGS} ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+
+md5c.o: rsa/md5c.c
+nn.o: rsa/nn.c
+prime.o: rsa/prime.c
+r_random.o: rsa/r_random.c
+rsa.o: rsa/rsa.c
+
+clean:
+ -rm *.o wastesrv