-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·63 lines (44 loc) · 1.46 KB
/
Makefile
File metadata and controls
executable file
·63 lines (44 loc) · 1.46 KB
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
57
58
59
60
61
62
63
OPT=-g -Wall -Wextra -Werror=return-type
EXECS=treurecom parser-01 parser-02 parser horari-01 horari-02 horari horari_m
#=====================
# Execucions de prova
#=====================
testhorari.pdf : testhorari.txt
iconv -c -f utf8 -t ISO-8859-1 testhorari.txt | a2ps -M A4dj -1 --no-header --borders=no -o- - | ps2pdf - testhorari.pdf
testhorari.txt : treurecom parser horari
./treurecom < assigs_gmat.txt | ./parser 2017 > linies1.txt
./treurecom < assigs_gea.txt | ./parser 2017 > linies2.txt
cat linies1.txt linies2.txt | ./horari 2017 16/4 > testhorari.txt
liniestesthorari : treurecom parser horari
./treurecom < assigs_gmat.txt | ./parser 2017 ; ./treurecom < assigs_gea.txt | ./parser 2017
#=============
# Executables
#=============
treurecom : treurecom.c
gcc -o treurecom $(OPT) treurecom.c -lm
parser-01 : parser-01.c
gcc -o parser-01 $(OPT) parser-01.c -lm
parser-02 : parser-02.c
gcc -o parser-02 $(OPT) parser-02.c -lm
parser : parser.c dates.o
gcc -o parser $(OPT) parser.c dates.o -lm
horari-01 : horari-01.c dates.o
gcc -o horari-01 $(OPT) horari-01.c dates.o -lm
horari-02 : horari-02.c dates.o
gcc -o horari-02 $(OPT) horari-02.c dates.o -lm
horari : horari.c dates.o
gcc -o horari $(OPT) horari.c dates.o -lm
#============
# Biblioteca
#============
dates.o : dates.c
gcc -c $(OPT) dates.c
#========
# Neteja
#========
clean :
rm -f *.o
cleanexecs : clean
rm -f $(EXECS)
realclean : clean cleanexecs
rm -f testhorari.pdf testhorari.txt