blob: e289adcb63f6f501ac40a4e824538b84b6e7e350 (
plain)
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
|
# $Id$
# Requires FSU pthreads and gcc 2.7.2 installed in /usr/progressive
# to produce libACE.so correctly changed the specs file for gcc 2.7.2
# for not link -lc and -lgcc and other not shared libraries
CC = gcc
# for threads
# for no threads
#CXX = gcc -fno-implicit-templates -w -fno-strict-prototypes
# LDFLAGS += -L $(ACE_ROOT)/ace -L ./ ${FSU_PTHREADS_DIR}/init/init.o # -z muldefs
# LDLIBS += -L $(ACE_ROOT)/ace -L ./ ${FSU_PTHREADS_DIR}/init/init.o -lACE # -z muldefs
LDLIBS += -L $(ACE_ROOT)/ace # -z muldefs
CXX = g++
CFLAGS += $(DCFLAGS) -melf -w -O2
CCFLAGS += $(DCCFLAGS) -melf -O2 -fPIC -fno-implicit-templates -I /usr/progressive/lib/g++-include
#DCFLAGS += -gstabs -DACE_HAS_BIG_FD_SET
DCFLAGS += -gstabs
DCCFLAGS += $(DCFLAGS)
DLD = $(CXX)
LD = $(CXX)
LIBS = -lnsl -lsocket
PIC = -fPIC
AR = ar
ARFLAGS = ruv
RANLIB = /bin/true
SOFLAGS = $(CPPFLAGS) -melf -fPIC -G
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
# SOLINK = $(SOLINK.cc) -o $@ $(LDFLAGS) $<
# PRELIB = (echo "main() { }" > gcctemp.c && \
# $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
# $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LDLIBS) $(LIBS); \
# status=$$?; exit $$status)
PRELIB = @true
|