]> vgcfreebox.myrthtech.pt Git - ue-pp-terminationdetectionalgorithm.git/blob - Makefile
cb917871fdc2f123a27f17e871c55ffa63613a26
[ue-pp-terminationdetectionalgorithm.git] / Makefile
1 # replace with the file containing your algorithm
2 CONTROL_ALGORITHM = control-skeleton.c
3
4 # add extra flags here
5 XCFLAGS =
6
7 CC = mpicc
8 CFLAGS = -std=gnu11 -Wall -Wno-parentheses -g3 $(XWARN) $(XCFLAGS)
9
10 #LDLIBS = -lrt
11
12 XWARN = # -Wextra -Wconversion
13
14
15 C_FILES = termination.c basic.c util.c $(CONTROL_ALGORITHM)
16 O_FILES = $(addsuffix .o, $(basename $(C_FILES)))
17
18 H_FILES = global.h util.h basic.h control.h
19
20 termination : $(O_FILES)
21
22
23 # dependencies
24
25 $(O_FILES) : $(H_FILES)
26
27 $(addsuffix .o, $(basename $(CONTROL_ALGORITHM))) : control.h
28
29
30 clean :
31 @$(RM) $(O_FILES) termination