blob: cbc4f76a9964859d56676e4ab54dbe2b0c0041cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- FreeBSD_makefile.orig Wed Aug 22 00:28:21 2001
+++ FreeBSD_makefile Thu Feb 28 23:27:26 2002
@@ -1,4 +1,3 @@
-CC=gcc
MAKEFILE=FreeBSD_makefile
YACC = bison -y
LEX = flex
@@ -8,8 +7,8 @@
#SRCDIRS= dir1 dir2
#INCL=$(SRCDIRS:%=-I%)
#CFLAGS = -O does not always work on BSDI pc
-CFLAGS = -ansi -c -Wall -O3
-TCFLAGS = $(CFLAGS) -pthread
+CFLAGS += -ansi -c
+TCFLAGS = $(CFLAGS) $(PTHREAD_LIBS)
COBJS = lex.yy.o y.tab.o configuration.o skiplist.o acm.o
OBJS = alarm.o events.o memory.o membership.o data_link.o network.o status.o log.o flow_control.o message.o acp-permit.o auth-null.o auth-ip.o
@@ -30,7 +29,7 @@
$(CC) -o spuser user.o libsp.a
sptuser : user.to libtsp.a
- $(CC) -pthread -o sptuser user.to libtsp.a
+ $(CC) $(PTHREAD_LIBS) -o sptuser user.to libtsp.a
simple_user : simple_user.o libsp.a
$(CC) -o simple_user simple_user.o libsp.a
@@ -78,7 +77,7 @@
$(CC) $(TCFLAGS) -fPIC -D_REENTRANT $*.c -o $*.tlo
.c.to:
- $(CC) $(TCFLAGS) -D_THREAD_SAFE -D_REENTRANT $*.c -o $*.to
+ $(CC) $(TCFLAGS) $(PTHREAD_CFLAGS) -D_REENTRANT $*.c -o $*.to
depend:
cp $(MAKEFILE) $(MAKEFILE).bak \
|