This commit is contained in:
maliakal_d 2019-08-19 21:28:53 +02:00
parent 0f37481972
commit 29c788b9f7
16 changed files with 14 additions and 25 deletions

View File

@ -1,16 +1,18 @@
CC = powerpc-4xx-softfloat-gcc
BLACKFIN_CC = bfin-uclinux-gcc
CFLAGS += -Wall -DEIGERD -DSTOP_SERVER #-DVERBOSEI #-DVERBOSE -DPCCOMPILE -DMARTIN
LDLIBS += -lm -lstdc++
current_dir = $(shell pwd)
main_server = ../slsDetectorServer/
support_lib = ../../slsSupportLib/include/
CROSS = powerpc-4xx-softfloat-
BLACKFIN_CC = bfin-uclinux-gcc
CC = $(CROSS)gcc
CFLAGS += -Wall -DEIGERD -DSTOP_SERVER -I$(main_server) -I$(support_lib) -I$(current_dir)#-DVERBOSEI #-DVERBOSE
LDLIBS += -lm
PROGS = eigerDetectorServer
DESTDIR ?= bin
INSTMODE = 0777
SRC_CLNT = communication_funcs.c slsDetectorServer.c slsDetectorServer_funcs.c slsDetectorFunctionList.c HardwareIO.c LocalLinkInterface.c FebInterface.c FebControl.c Beb.c
OBJS = $(SRC_CLNT:.c=.o)
SRCS = $(main_server)communication_funcs.c $(main_server)slsDetectorServer.c $(main_server)slsDetectorServer_funcs.c slsDetectorFunctionList.c HardwareIO.c LocalLinkInterface.c FebInterface.c FebControl.c Beb.c
OBJS = $(SRCS:.c=.o)
all: clean versioning $(PROGS) #hv9m_blackfin_server
@ -26,16 +28,16 @@ versioning:
$(PROGS): $(OBJS)
# echo $(OBJS)
mkdir -p $(DESTDIR)
$(CC) -o $@ $(SRC_CLNT) $(CFLAGS) $(LDLIBS)
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
mv $(PROGS) $(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
rm hv9m_blackfin_server.gdb $(main_server)*.o
clean:
rm -rf $(DESTDIR)/$(PROGS) *.o $(DESTDIR)/hv9m_blackfin_server
rm -rf $(DESTDIR)/$(PROGS) *.o $(DESTDIR)/hv9m_blackfin_server $(main_server)*.o

View File

@ -1 +0,0 @@
../../slsSupportLib/include/ansi.h

View File

@ -1 +0,0 @@
../slsDetectorServer/common.h

View File

@ -1 +0,0 @@
../slsDetectorServer/communication_funcs.c

View File

@ -1 +0,0 @@
../slsDetectorServer/communication_funcs.h

View File

@ -1 +0,0 @@
../slsDetectorServer/communication_funcs_UDP.h

View File

@ -1 +0,0 @@
../slsDetectorServer/logger.h

View File

@ -1 +0,0 @@
../slsDetectorServer/slsDetectorFunctionList.h

View File

@ -1 +0,0 @@
../slsDetectorServer/slsDetectorServer.c

View File

@ -1 +0,0 @@
../slsDetectorServer/slsDetectorServer_funcs.c

View File

@ -1 +0,0 @@
../slsDetectorServer/slsDetectorServer_funcs.h

View File

@ -1 +0,0 @@
../../slsSupportLib/include/sls_detector_defs.h

View File

@ -1 +0,0 @@
../../slsSupportLib/include/sls_detector_funcs.h

View File

@ -1 +0,0 @@
../../slsSupportLib/include/versionAPI.h

View File

@ -3,8 +3,8 @@
#define APILIB 0x190723
#define APIRECEIVER 0x190722
#define APIGUI 0x190723
#define APIEIGER 0x190816
#define APIJUNGFRAU 0x190819
#define APIGOTTHARD 0x190819
#define APICTB 0x190819
#define APIMOENCH 0x190819
#define APIEIGER 0x190819