-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·28 lines (22 loc) · 821 Bytes
/
Makefile
File metadata and controls
executable file
·28 lines (22 loc) · 821 Bytes
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
OPCIONS = -D_JUDGE_ -D_GLIBCXX_DEBUG -O2 -Wall -Wextra -Werror -Wno-sign-compare -std=c++11
program.exe: program.o Cluster.o Espera_procesos.o Prioridad.o Proceso.o Procesador.o
g++ -o program.exe *.o
Cluster.o: Procesador.hh Proceso.hh
g++ -c Cluster.cc $(OPCIONS)
Espera_procesos.o: Prioridad.hh Proceso.hh Cluster.hh
g++ -c Espera_procesos.cc $(OPCIONS)
Prioridad.o: Proceso.hh Cluster.hh
g++ -c Prioridad.cc $(OPCIONS)
Proceso.o:
g++ -c Proceso.cc $(OPCIONS)
Procesador.o: Proceso.hh
g++ -c Procesador.cc $(OPCIONS)
program.o: program.cc Procesador.hh Proceso.hh Prioridad.hh Cluster.hh Espera_procesos.hh
g++ -c program.cc $(OPCIONS)
clean:
rm *.o *.exe *.tar
practica.tar:
tar -cvf practica.tar *.cc *.hh Makefile html.zip
cmp:
./program.exe < sample.inp > out.txt
kompare sample.cor out.txt