mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00
42 lines
1.1 KiB
Makefile
Executable File
42 lines
1.1 KiB
Makefile
Executable File
CC = powerpc-4xx-softfloat-gcc
|
|
BLACKFIN_CC = bfin-uclinux-gcc
|
|
CFLAGS += -Wall -DEIGERD -DSTOP_SERVER #-DVERBOSEI #-DVERBOSE -DPCCOMPILE -DMARTIN
|
|
LDLIBS += -lm -lstdc++
|
|
|
|
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)
|
|
|
|
|
|
all: clean versioning $(PROGS) #hv9m_blackfin_server
|
|
|
|
|
|
boot: $(OBJS)
|
|
|
|
version_name=APIEIGER
|
|
version_path=slsDetectorServers/eigerDetectorServer
|
|
versioning:
|
|
cd ../../ && echo $(PWD) && echo `tput setaf 6; ./updateAPIVersion.sh $(version_name) $(version_path); tput sgr0;`
|
|
|
|
|
|
$(PROGS): $(OBJS)
|
|
# echo $(OBJS)
|
|
mkdir -p $(DESTDIR)
|
|
$(CC) -o $@ $(SRC_CLNT) $(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
|
|
|
|
clean:
|
|
rm -rf $(DESTDIR)/$(PROGS) *.o $(DESTDIR)/hv9m_blackfin_server
|
|
|
|
|