mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
* enabled -O2 for ctb and mythen + a few additional warnings (cherry picked from commit4d2f37c205) * configure stack size for blackfin servers to 256kB instead of the default 4kB (cherry picked from commit5468b1e4dd) * enable opt for JF and Moench, ratemax make local for eiger (cherry picked from commit5500800503) * fixed misplaced volatile on Beb_Read32 (cherry picked from commit7b9f408df1) * removed dead code in eiger server (which had 2 byte read passt end) 10.1.0.rc: only the Eiger part of the original commit is applied. The usleep_bf change (return -1 for sleeps that cannot be represented) does not apply, usleep_bf does not exist on this branch. (cherry picked from commit8e24c0196f) * deal with fall through of table filling in ratecorr table (cherry picked from commitf69856b5ff) * memory clobber for inline asm and added flags on eiger (cherry picked from commita8c391509e) * -O2 for gotthard and xilinx (cherry picked from commitbf73241a47) * fixes to remove the new warnings (cherry picked from commiteb525e96be) * fixed new eiger warnings (cherry picked from commit9c86c36534) * binaries in * fixes for warnings (already in developer from list.h separation PR) --------- Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
53 lines
1.8 KiB
Makefile
Executable File
53 lines
1.8 KiB
Makefile
Executable File
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
current_dir = $(shell pwd)
|
|
main_inc = ../slsDetectorServer/include/
|
|
main_src = ../slsDetectorServer/src/
|
|
support_lib = ../../slsSupportLib/include/
|
|
md5_dir = ../../slsSupportLib/src/
|
|
script_dir = ../../etc/
|
|
|
|
BLACKFIN_CC = bfin-uclinux-gcc
|
|
CROSS = powerpc-4xx-softfloat-
|
|
CC = $(CROSS)gcc
|
|
CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wredundant-decls -Werror=return-type -std=gnu99 -DEIGERD -DSTOP_SERVER -I$(main_inc) -I$(support_lib) -I$(current_dir) #-DDEBUG1 #-DVERBOSEI #-DVERBOSE
|
|
LDLIBS += -lm -lrt -pthread
|
|
PROGS = eigerDetectorServer
|
|
DESTDIR = bin
|
|
INSTMODE = 0777
|
|
|
|
SRCS = slsDetectorFunctionList.c HardwareIO.c LocalLinkInterface.c FebInterface.c FebControl.c Beb.c
|
|
SRCS += $(main_src)communication_funcs.c $(main_src)slsDetectorServer.c $(main_src)slsDetectorServer_funcs.c $(main_src)communication_funcs_UDP.c $(main_src)common.c $(main_src)/sharedMemory.c $(md5_dir)md5.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
all: clean $(PROGS) #hv9m_blackfin_server
|
|
version: clean versioning $(PROGS) #hv9m_blackfin_server
|
|
|
|
boot: $(OBJS)
|
|
|
|
version_name=APIEIGER
|
|
version_path=slsDetectorServers/eigerDetectorServer
|
|
versioning:
|
|
echo `tput setaf 6; python $(script_dir)updateAPIVersion.py $(version_name) $(version_path); tput sgr0;`
|
|
|
|
|
|
$(PROGS): $(OBJS)
|
|
# echo $(OBJS)
|
|
mkdir -p $(DESTDIR)
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
|
|
mv $(PROGS) $(DESTDIR)
|
|
cp config_eiger.txt $(DESTDIR)
|
|
cp detid.txt $(DESTDIR)
|
|
|
|
|
|
hv9m_blackfin_server:9mhvserial_bf.c
|
|
$(BLACKFIN_CC) -o hv9m_blackfin_server 9mhvserial_bf.c -Wall #-DVERBOSE
|
|
mv hv9m_blackfin_server $(DESTDIR)
|
|
rm hv9m_blackfin_server.gdb $(main_src)*.o $(md5_dir)*.o
|
|
|
|
clean:
|
|
rm -rf $(DESTDIR)/$(PROGS) *.o $(DESTDIR)/hv9m_blackfin_server $(main_src)*.o $(md5_dir)*.o
|
|
|
|
|