-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
executable file
·48 lines (32 loc) · 1.52 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
########################################################################
#
# --- CAEN SpA - Computing Division ---
#
# CAENVMElib Software Project
#
# Created : March 2004 (Rel. 1.0)
#
# Auth: S. Coluccini
#
########################################################################
EXE = main
CC = g++
COPTS = -fPIC -DLINUX -Wall
#COPTS = -g -fPIC -DLINUX -Wall
FLAGS = -Wall -s
#FLAGS = -Wall
DEPLIBS = -l CAENVME -l ncurses -lc -lm
LIBS =
INCLUDEDIR = -I.
OBJS = main.o include/Discri.o include/HV.o include/TDC.o include/TTCvi.o include/VmeBoard.o include/VmeController.o include/VmeUsbBridge.o include/CommonDef.o include/Scaler.o
INCLUDES = include/CAENVMElib.h include/CAENVMEtypes.h include/CAENVMEoslib.h
#########################################################################
all : $(EXE)
clean :
/bin/rm -f $(OBJS) $(EXE)
$(EXE) : $(OBJS)
/bin/rm -f $(EXE)
$(CC) $(FLAGS) -o $(EXE) $(OBJS) $(DEPLIBS)
$(OBJS) : $(INCLUDES) Makefile
%.o : %.cpp
$(CC) $(COPTS) $(INCLUDEDIR) -c -o $@ $<