graph

unidirected graph implementation using adjacency list
Index Commits Files Refs README LICENSE
commit a5ee491f9ed42a6390d0579f0e735056693087f8
parent 96b893eeee4a3afd16527336972b376fc99da1cc
Author: mjkloeckner <martin.cachari@gmail.com>
Date:   Fri, 27 Jan 2023 18:04:32 -0300

added Makefile

Diffstat:
AMakefile | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -0,0 +1,21 @@
+CC := gcc
+CLIBS :=
+CFLAGS := -Wall -Wshadow -pedantic -ansi -std=c99 -O3
+SRCS := $(wildcard *.c)
+OBJS := $(SRCS:.c=.o)
+
+TARGET := main
+
+.PHONY: all clean viz
+
+all: $(TARGET)
+
+$(TARGET): $(OBJS)
+    $(CC) $(CLIBS) $(CFLAGS) -o $@ $^
+    rm -f $(OBJS)
+
+%.o: %.c
+    $(CC) $(CLIBS) $(CFLAGS) -c $< -o $@
+
+clean:
+    rm -f $(OBJS)