#************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. # Copyright (c) 2002 The Regents of the University of California, as # Operator of Los Alamos National Laboratory. # This file is distributed subject to a Software License Agreement found # in the file LICENSE that is included with this distribution. #************************************************************************* # # Makefile,v 1.15 2013/01/11 21:34:18 jba Exp # TOP = ../.. include $(TOP)/configure/CONFIG #HOST_WARN = NO #CMPLR=ANSI TEMPLATES_DIR = List # Definining DEV_USR_CCFLAGS, DEV_USR_LDLIBS, and DEV_DEPLIBS will build BURT # so that it is aware of devices. #DEV_USR_CCFLAGS = #USR_LIBS = -ldev #dev_DIR = $(DEV_DEPLIBS) #DEV_DEPLIBS = $(EPICS_EXTENSIONS_LIB)/libdev.a # If you're having trouble with devices and/or have no need for them, try making # BURT using the following DEV_USR_CCFLAGS, DEV_USR_LDLIBS, and DEV_DEPLIBS # instead of the ones above. DEV_USR_CCFLAGS = -DNODEVICES DEV_USR_LIBS = USR_LIBS += SDDS1 USR_LIBS += namelist USR_LIBS += mdblib USR_LIBS += $(DEV_USR_LIBS) USR_LIBS += ca USR_LIBS += Com USR_LIBS += Xm USR_LIBS += Xt USR_LIBS_Linux += Xp Xext X11 USR_LIBS += X11 ca_DIR = $(EPICS_BASE_LIB) Com_DIR = $(EPICS_BASE_LIB) SDDS1_DIR = $(EPICS_EXTENSIONS_LIB) namelist_DIR = $(EPICS_EXTENSIONS_LIB) mdblib_DIR = $(EPICS_EXTENSIONS_LIB) Xm_DIR = $(MOTIF_LIB) Xt_DIR = $(X11_LIB) Xp_DIR = $(X11_LIB) Xext_DIR = $(X11_LIB) X11_DIR = $(X11_LIB) USR_CFLAGS = -I$(MOTIF_INC) \ -I$(X11_INC) \ -USUN4 USR_CXXFLAGS = -I$(INSTALL_TEMPLATES)/$(TEMPLATES_DIR) \ -I$(MOTIF_INC) \ -I$(X11_INC) \ $(DEV_USR_CCFLAGS) \ -USUN4 ifeq ($(ZLIB) , libz.a) USR_LIBS += $(ZLIB_PROD_LIB) else PROD_SYS_LIBS += z endif PROD_SYS_LIBS += gsl gslcblas ifeq ($(OS_CLASS),Linux) gcc-version = $(shell gcc -v 2> /dev/stdout | grep "^gcc" | awk '{print $$4}') USR_CFLAGS_Linux = $(shell if [ "$(call gcc-version)" -lt "20051125" ]; then echo "-fwritable-strings" ; else echo "" ; fi;) endif #USR_CXXFLAGS_Linux = -fno-const-strings ifeq ($(OS_CLASS),solaris) ifeq ($(GNU),YES) USR_CFLAGS += -fwritable-strings -D__EXTENSIONS__ else USR_CXXFLAGS_solaris += -features=no%conststrings #HOST_OPT=NO #DEBUGCMD = purify endif endif # baseR3.13.0.beta12 and later burtcommon_CPPFLAGS = -DBURT_PREPROCESSOR='"gcc -xc -nostdinc -traditional -E "' COMMSRC += burtobjs.cc COMMSRC += burtcommon.cc COMMSRC += burtlist.cc #COMMSRC += list.cc #COMMSRC += cursor.cc BURTSRC += burtrb.cc BURTSRC += burtwb.cc BURTSRC += burtmath.cc BURTSRC += burtset.cc CONVSRC += burtconvertsnap.cc GOOEYSRC += burtgooey.c GOOEYSRC += burtgooeyfuncs.c GOOEYSRC += read_burtgooey.c GOOEYSRC += write_burtgooey.c GOOEYSRC += addsub_burtgooey.c GOOEYSRC += mult_burtgooey.c GOOEYSRC += set_burtgooey.c GOOEYSRC += definc_burtgooey.c PROD_HOST += burtrb PROD_HOST += burtwb PROD_HOST += burtmath PROD_HOST += burtset PROD_HOST += burtgooey PROD_HOST += burtconvertsnap burtrb_SRCS = burtrb.cc $(COMMSRC) burtwb_SRCS = burtwb.cc $(COMMSRC) burtmath_SRCS = burtmath.cc $(COMMSRC) burtset_SRCS = burtset.cc $(COMMSRC) burtgooey_SRCS = $(GOOEYSRC) burtconvertsnap_SRCS = burtconvertsnap.cc $(COMMSRC) include $(TOP)/configure/RULES