Makefile 1.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
########################################################################
#                                                                      
#              --- CAEN SpA - Computing Division ---                   
#                                                                      
#   CAENVMElib Software Project                                        
#                                                                      
#   Created  :  Nov 2005      (Rel. 1.0)                                             
#                                                                      
#   Auth: NDA
#                                                                      
########################################################################

13
EXE	=	N957Run
14
15
16
17
18
19
20
21
22
23
24
25
26

CC	=	gcc

COPTS	=	-fPIC -DLINUX -Wall 
#COPTS	=	-g -fPIC -DLINUX -Wall 

FLAGS	=	-Wall -s
#FLAGS	=	-Wall

DEPLIBS	=       -lCAENN957 -lm

LIBS	=	

Rafaela Meissner's avatar
novo    
Rafaela Meissner committed
27
INCLUDEDIR =	-I. -I./include -I./N957
28

Rafaela Meissner's avatar
novo    
Rafaela Meissner committed
29
OBJS	=	./lib/main.o ./lib/user_settings.o ./lib/keyb.o
30

Rafaela Meissner's avatar
novo    
Rafaela Meissner committed
31
INCLUDES =	./N957/N957Lib.h ./N957/N957types.h ./N957/N957oslib.h ./include/keyb.h ./include/user_settings.h
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

#########################################################################

all	:	$(EXE)

clean	:
		/bin/rm -f $(OBJS) $(EXE)

$(EXE)	:	$(OBJS)
		/bin/rm -f $(EXE)
		$(CC) $(FLAGS) -o $(EXE) $(OBJS) $(DEPLIBS)

$(OBJS)	:	$(INCLUDES) Makefile

%.o	:	%.c
		$(CC) $(COPTS) $(INCLUDEDIR) -c -o $@ $<