virtual servers can be compiled from top directory; include directory with users headers added

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@504 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi
2013-04-08 12:40:28 +00:00
parent 5e4c2f30b4
commit 8088e6231e
7 changed files with 31 additions and 38 deletions

View File

@ -0,0 +1,18 @@
DESTDIR?= ./
PROGS= $(DESTDIR)/mythenVirtualServer
SRCS= server.c server_funcs.c communication_funcs.c firmware_funcs.c mcb_funcs.c trimming_funcs.c sharedmemory.c
OBJS= $(SRCS:%.c=%.o)
CFLAGS+= -Wall -DC_ONLY -DMCB_FUNCS -DDACS_INT $(VFLAGS) -DVIRTUAL -DVERBOSE
LDLIBS+= -lm
mythenVirtualServer : clean $(PROGS)
$(PROGS): $(SRCS)
gcc $(LDFLAGS) $(SRCS) $(LDLIBS) $(CFLAGS) -o $@
clean:
rm -f *.o $(PROGS)