Pull in Makefile changes from RELEASE-3_2

This commit is contained in:
Douglas Clowes
2014-08-27 16:49:56 +10:00
parent e76f6376ee
commit 4ea8678b44

12
site_ansto/Makefile Normal file → Executable file
View File

@ -7,6 +7,8 @@
# Markus Zolliker, March 2003
#==========================================================================
.PHONY: sct
default: all
# ANSTO rules and variables
@ -25,7 +27,9 @@ INCFLAGS = -Ihardsup -I.. $(INC_HDF5) $(INC_TCL8)
# may be in different locations. This code tries to find the include files and
# libraries required in descending order of preference.
libsearch = $(wildcard /usr/lib*/lib$(1).so /usr/lib*/lib$(1).so.? /usr/lib*/lib$(1).so.??* /usr/lib*/lib$(1).a)
libsearcha = $(wildcard /usr/lib*/lib$(1).a)
libsearchso = $(wildcard /usr/lib*/lib$(1).so /usr/lib*/lib$(1).so.? /usr/lib*/lib$(1).so.??*)
libsearch = $(firstword $(call libsearcha,$(1)) $(call libsearchso,$(1)))
libsearch1 = $(firstword $(call libsearch,$(1)))
incsearch = $(wildcard /usr/include/$(1) /usr/local/include/$(1))
incsearch1 = $(firstword $(call incsearch,$(1)))
@ -41,7 +45,7 @@ $(foreach myinc,$(myincs),$(info incsearch1($(myinc)) = $(call incsearch1,$(myin
endif
# TCL 8.5 or 8.4
LIB_TCL8 = $(firstword $(call libsearch1,tcl8.5) $(call libsearch1,tcl8.4))
LIB_TCL8 = $(firstword $(call libsearchso,tcl8.5) $(call libsearchso,tcl8.4))
INC_TCL8 = $(firstword $(call incsearch1,tcl.h) $(call incsearch1,tcl8.5/tcl.h) $(call incsearch1,tcl8.4/tcl.h))
ifeq (,$(LIB_TCL8))
@ -154,7 +158,9 @@ OBJ= site_ansto.o anstoutil.o\
beamstopaction.o action.o \
tclClock.o tclDate.o tclUnixTime.o
all: config libsics libansto.a libhardsup
all: | config libsics libhardsup SICServer
SICServer: ../SICSmain.o libansto.a hardsup/libhlib.a ../libsics.a ../matrix/libmatrix.a | config libsics libhardsup
$(CC) -g -o SICServer ../SICSmain.o $(SUBLIBS) $(GHTTP_LIBS)
config: