You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
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
|
|
cat application_select.data | ./application_select
|
|
|
|
build_warshall: warshall.c
|
|
$(CC) $(CFLAGS) warshall.c -o warshall
|
|
warshall_run: warshall
|
|
cat warshall.data | ./warshall
|
|
|
|
build_topological: topological.c
|
|
$(CC) $(CFLAGS) topological.c -o topological
|
|
topological_run: topological
|
|
cat topological.data | ./topological
|
|
|
|
build_dijkstra: dijkstra.c
|
|
$(CC) $(CFLAGS) dijkstra.c -o dijkstra
|
|
dijkstra_run: dijkstra
|
|
cat dijkstra.data | ./dijkstra
|
|
|
|
build_prim: prim.c
|
|
$(CC) $(CFLAGS) prim.c -o prim
|
|
prim_run: prim
|
|
cat prim.data | ./prim
|
|
|
|
build_kruskal: kruskal.c
|
|
$(CC) $(CFLAGS) kruskal.c -o kruskal
|
|
kruskal_run: kruskal
|
|
cat kruskal.data | ./kruskal
|
|
|
|
clean:
|
|
rm -f $(EXECS)
|