-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (42 loc) · 1.68 KB
/
Makefile
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
46
47
48
49
50
51
52
53
54
55
56
CXX = g++
OSFLAGS = -DOS_LINUX -Dextname
CFLAGS = -g -Wno-deprecated $(OSFLAGS) -fpermissive
LIBS = -lm -lz -lutil -lnsl -lpthread -lrt
DRV_DIR = $(MIDASSYS)/drivers/vme
INC_DIR = $(MIDASSYS)/include
#LXEBIT2, if building in vagrant comment this out and uncomment vagrant section..
CC = gcc
FLAGS32 = -m32
LIB_DIR = $(MIDASSYS)/linux-m32/lib
LIB64_DIR = $(MIDASSYS)/linux/lib
VME_DIR = /home/olchansk/daq/vmisft-7433-3.4-KO1/vme_universe
VME_DIR = /triumfcs/trshare/olchansk/daq/vmisft-7433-3.4-KO1/vme_universe
CFLAGS += -g -I$(DRV_DIR) -I. -I$(INC_DIR) -I$(DRV_DIR)/vmic -I$(VME_DIR)/include -L$(VME_DIR)/lib
############
#Vagrant MIDAS
#CC = g++
#LIB_DIR = $(MIDASSYS)/lib
#SRC_DIR = $(MIDASSYS)/src
#VME_DIR = /usr/local/packages/vme/vmisft-7433-3.6/vme_universe
#CFLAGS += -g -I$(DRV_DIR) -I. -I$(INC_DIR) -I$(DRV_DIR)/vmic -I$(VME_DIR)/include -L$(VME_DIR)/lib -L$(LIB_DIR)
############
all: femdpp
femdpp: femdpp.o vmicvme_mdpp.o mdpp16.o $(LIB_DIR)/mfe.o $(LIB_DIR)/libmidas.a
$(CC) $(CFLAGS) $(FLAGS32) -o $@ $^ -lvme $(LIBS)
vmicvme_mdpp.o: vmicvme_mdpp.c vmicvme_mdpp.h
$(CC) $(CFLAGS) $(FLAGS32) -o $@ -c $<
mdpp16.o: mdpp16.c mdpp16.h
$(CC) $(CFLAGS) $(FLAGS32) -o $@ -c $<
fesis.c: mdpp16.h
ROOTCFLAGS := $(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTCFLAGS += -DHAVE_ROOT -DUSE_ROOT
ROOTLIBS := $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTLIBS += -lThread
#analyzer: $(LIB64_DIR)/rmana.o $(LIB64_DIR)/libmidas.a analyzer.o anmdpp.o
# $(CXX) $(CFLAGS) -o $@ $^ $(ROOTLIBS) $(LIBS)
#analyzer.o: analyzer.c
# $(CXX) $(CFLAGS) $(ROOTCFLAGS) -o $@ -c $<
#anmdpp.o: anmdpp.c
# $(CXX) $(ROOTCFLAGS) $(CFLAGS) -o $@ -c $<
clean::
rm -f *.o *~ \#*