mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-21 11:50:41 +02:00
46 lines
1.3 KiB
Makefile
Executable File
46 lines
1.3 KiB
Makefile
Executable File
CC = powerpc-4xx-softfloat-gcc
|
|
CCX = powerpc-4xx-softfloat-g++
|
|
BLACKFIN_CC = bfin-uclinux-gcc
|
|
CFLAGS += -Wall -DDACS_INT -DEIGERD -DSLS_DETECTOR_FUNCTION_LIST -DDACS_INT -DSTOP_SERVER #-DVERBOSEI #-DVERBOSE #-DVIRTUAL -DPCCOMPILE -DMARTIN
|
|
LDLIBS += -lm -lstdc++
|
|
|
|
PROGS = eigerDetectorServer
|
|
DESTDIR ?= bin
|
|
INSTMODE = 0777
|
|
|
|
|
|
SRC_CLNT = communication_funcs.c slsDetectorServer.c slsDetectorServer_funcs.c slsDetectorFunctionList.c FebControl.c Beb.c HardwareIO.c LocalLinkInterface.c Feb.c FebInterface.c
|
|
#SRC_CLNT2 = FebServer.cxx FebControl.cxx FebInterface.cxx LocalLinkInterface.cxx HardwareIO.cxx
|
|
#SRC_CLNT3 = BebServer.cxx Beb.cxx LocalLinkInterface.cxx HardwareIO.cxx
|
|
|
|
OBJS = $(SRC_CLNT:.c=.o)
|
|
|
|
|
|
all: clean $(PROGS) hv9m_blackfin_server #feb_debug beb_debug
|
|
|
|
|
|
boot: $(OBJS)
|
|
|
|
$(PROGS):
|
|
echo $(OBJS)
|
|
mkdir -p $(DESTDIR)
|
|
$(CC) -o $@ $(SRC_CLNT) $(CFLAGS) $(LDLIBS)
|
|
mv $(PROGS) $(DESTDIR)
|
|
|
|
feb_debug:$(SRC_CLNT2)
|
|
$(CCX) -o feb_debug $(SRC_CLNT2) -I.
|
|
mv feb_debug $(DESTDIR)
|
|
|
|
beb_debug:$(SRC_CLNT3)
|
|
$(CCX) -o beb_debug $(SRC_CLNT3) -I.
|
|
mv beb_debug $(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
|
|
|
|
clean:
|
|
rm -rf $(DESTDIR)/$(PROGS) *.o $(DESTDIR)/hv9m_blackfin_server
|
|
|