Skip to content
Snippets Groups Projects
Verified Commit 60ab93ac authored by orestis.malaspin's avatar orestis.malaspin
Browse files

added makefile to compile all examples in recursivity

parent 2ebb1fc0
No related branches found
No related tags found
No related merge requests found
CC:=gcc
SAN:=-fsanitize=address
CFLAGS:=-Wall -Wextra -pedantic -g $(SAN)
LDFLAGS:=-lm $(SAN)
EXECS := $(shell find . -type f -iname '*.c' | sed 's/\.c//g')
all: $(EXECS)
$(EXECS): %: %.c
# @echo $<
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
.PHONY: clean
clean:
rm -f *.o $(EXECS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment