# LDLIBS += -lpthread -lz
LDLIBS += -lpthread
endif
ifeq ("$(TARGET)", "fc6")
CXXFLAGS += -DHAVE_GETIFADDRS -DHAVE_DA8150
# LDLIBS += -lpthread -lz
LDLIBS += -lpthread
endif
ifeq ("$(TARGET)", "rh7")
CXXFLAGS += -DOLD_GXX
LDLIBS += -lpthread
endif
ifeq ("$(TARGET)", "fpgaLinux")
CXXFLAGS += -DOLD_GXX
LDLIBS += -lpthread
endif
ifeq ("$(TARGET)", "lynxos")
CXXFLAGS += -DOLD_GXX
LDLIBS += -mthreads
CPFLAGS =
endif
ifeq ("$(BUILD_ENV)", "CERN")
# Map standard program production rules
ifeq ("$(TARGET)", "lynxos")
CPU = ppc4
else
CPU = Linux
endif
DEBUGFLAGS = -Os
DARCH = .$(CPU)
LIBDIR = $(DEST_DIR)/$(PREFIX)/lib/$(CPU)
# Include CERN standard program production rules
#include /ps/dsc/src/co/Make.auto
include $(TOP)/Makefile.rules
endif
.SUFFIXES: .spec
%.spec: Makefile.config
@(if ! grep "^Version:.*${VERSION}" $@; then\
sed -e "s/^Version:.*/Version:\t${VERSION}/" $@ > $@.tmp;\
mv $@.tmp $@; fi) 2>&1 > /dev/null