-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.dhanya
45 lines (32 loc) · 1.27 KB
/
Makefile.dhanya
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
WD = $(shell pwd)
LIBDIR = $(WD)/../bin
CALDIR = $(WD)/../slsDetectorCalibration
LIBRARYRXRDIR = $(WD)/../slsReceiverSoftware
LIBRARYDETDIR = $(WD)/../slsDetectorSoftware
LIBRARYCALDIR = $(WD)/../slsDetectorCalibration
LDFLAGRXR = -L$(LIBDIR) -lSlsReceiver -L/usr/lib64/ -lpthread
LDFLAGDET = -L$(LIBDIR) -lSlsDetector -L/usr/lib64/ -lpthread
INCLUDESRXR = -I $(LIBRARYRXRDIR)/slsReceiver
INCLUDESDET = -I $(LIBRARYDETDIR)/slsDetector -I $(LIBRARYDETDIR)/slsDetectorAnalysis -I $(LIBRARYDETDIR)/commonFiles
CCX = g++
CFLAGS += -Wall
LDLIBS += -lm -lstdc++
PROGS = imagedhanya
DESTDIR ?= bin
INSTMODE = 0777
INCLUDES = -I. -Iincludes -I $(LIBRARYRXRDIR)/include -I $(LIBRARYCALDIR) -I $(CALDIR)
SRC_CLNT = src/dummymain.cpp
#SRC_CLNT = src/main.cpp
OBJS = $(SRC_CLNT:.cpp=.o)
#FLAGS+= #-DVERBOSE -DVERYVERBOSE
all: clean $(PROGS)
boot: $(OBJS)
$(PROGS):
@echo $(WD)
echo $(OBJS)
mkdir -p $(DESTDIR)
# $(CCX) -o $@ $(SRC_CLNT) $(INCLUDES) $(INCLUDESRXR) $(LDFLAGRXR) $(INCLUDESDET) $(LDFLAGDET) $(CFLAGS) $(LDLIBS) `$(ROOTSYS)/bin/root-config --cflags --libs`
$(CCX) -o $@ $(SRC_CLNT) $(INCLUDES) $(INCLUDESRXR) $(LDFLAGRXR) $(INCLUDESDET) $(LDFLAGDET) $(CFLAGS) $(LDLIBS)
mv $(PROGS) ../bin
clean:
rm -rf ../bin/$(PROGS) *.o