|
|
CC=gcc
|
|
|
CFLAGS=-Wall -lm -Wall -Werror=sign-compare -Werror=array-bounds -Werror=maybe-uninitialized -Werror=unused-parameter -Werror=maybe-uninitialized -Werror=cast-qual
|
|
|
|
|
|
EXECS=application_select warshall topological dijkstra prim kruskal
|
|
|
|
|
|
build_application: application_select.c
|
|
|
$(CC) $(CFLAGS) application_select.c -o application_select
|
|
|
application_run: application_select
|
|
|
@printf "Обычные данные\n"
|
|
|
cat application_select.data | ./application_select
|
|
|
@printf "Большие данные\n"
|
|
|
cat application_select_big.data | ./application_select
|
|
|
|
|
|
build_warshall: warshall.c
|
|
|
$(CC) $(CFLAGS) warshall.c -o warshall
|
|
|
warshall_run: warshall
|
|
|
@printf "Обычные данные\n"
|
|
|
cat warshall.data | ./warshall
|
|
|
@printf "Большие данные\n"
|
|
|
cat warshall_big.data | ./warshall
|
|
|
|
|
|
build_topological: topological.c
|
|
|
$(CC) $(CFLAGS) topological.c -o topological
|
|
|
topological_run: topological
|
|
|
@printf 'Обычные данные\n===Без циклов:===\n'
|
|
|
cat topological_good.data | ./topological
|
|
|
@printf "\n===С циклом:===\n"
|
|
|
cat topological_bad.data | ./topological
|
|
|
@printf "Большие данные\n"
|
|
|
cat topological_big.data | ./topological
|
|
|
|
|
|
build_dijkstra: dijkstra.c
|
|
|
$(CC) $(CFLAGS) dijkstra.c -o dijkstra
|
|
|
dijkstra_run: dijkstra
|
|
|
@printf "Обычные данные\n"
|
|
|
cat dijkstra.data | ./dijkstra
|
|
|
@printf "Большие данные\n"
|
|
|
cat dijkstra_big.data | ./dijkstra
|
|
|
|
|
|
build_prim: prim.c
|
|
|
$(CC) $(CFLAGS) prim.c -o prim
|
|
|
prim_run: prim
|
|
|
@printf "Обычные данные\n"
|
|
|
cat prim.data | ./prim
|
|
|
@printf "Большие данные\n"
|
|
|
cat prim_big.data | ./prim
|
|
|
|
|
|
build_kruskal: kruskal.c
|
|
|
$(CC) $(CFLAGS) kruskal.c -o kruskal
|
|
|
kruskal_run: kruskal
|
|
|
@printf "Обычные данные\n"
|
|
|
cat kruskal.data | ./kruskal
|
|
|
@printf "Большие данные\n"
|
|
|
cat kruskal_big.data | ./kruskal
|
|
|
|
|
|
clean:
|
|
|
rm -f $(EXECS)
|