TOPDIR = ../..
include $(TOPDIR)/Makefile.vars.config

LIBNAME = dt_evalfuncs_core
include $(CONFIG)/Makefile.lib.vars

SHLIBEXTRA = dtcore/dtype++ dtcore/dsys++ dtcore/syslog dtcore/utils dat regex gmp gdbm com_err m

FUNCFILES = scheme number map set file dsys gdbm regex unix core

EXTRAHDRS = $(addsuffix .hh,$(addprefix dt_evalfuncs_,$(FUNCFILES))) dt_server.hh
CXXFILES = $(addprefix dt_evalfuncs_,$(FUNCFILES)) dt_server

ifneq ($(findstring alpha_osf, $(SYS)),)
FUNCFILES := $(FUNCFILES) objfile
CFILES := $(CFILES)
endif

ifdef HAS_DLSYM
CPPFLAGS := $(CPPFLAGS) -DHAS_DLSYM=1
else
CPPFLAGS := $(CPPFLAGS) -DHAS_DLSYM=0
endif
ifdef HAS_RUSAGE
CPPFLAGS := $(CPPFLAGS) -DHAS_RUSAGE=1
else
CPPFLAGS := $(CPPFLAGS) -DHAS_RUSAGE=0
endif
ifdef HAS_MALLINFO
CPPFLAGS := $(CPPFLAGS) -DHAS_MALLINFO=1
else
CPPFLAGS := $(CPPFLAGS) -DHAS_MALLINFO=0
endif
ifdef HAS_GETCLOCK
CPPFLAGS := $(CPPFLAGS) -DHAS_GETCLOCK=1
else
CPPFLAGS := $(CPPFLAGS) -DHAS_GETCLOCK=0
endif
ifdef HAS_PUTENV
CPPFLAGS := $(CPPFLAGS) -DHAS_PUTENV=1
else
CPPFLAGS := $(CPPFLAGS) -DHAS_PUTENV=0
endif


include $(CONFIG)/Makefile.targets.lib
include $(CONFIG)/Makefile.targets.lib.evalfuncs
