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

added Makefile for CI

parent 27d71d40
Branches
Tags
No related merge requests found
pile_ptr_int.o
eval_post
pile_ptr_int.o
eval_post.o
pile_array_int.o
pile_ptr_int_skel.o
CC:=gcc
# SAN:=-fsanitize=address
CFLAGS:=-Wall -Wextra -pedantic -g $(SAN)
LDFLAGS:=-lm $(SAN)
SOURCES := $(wildcard *.c)
OBJECTS := $(patsubst %.c, %.o, $(SOURCES))
all: eval_post $(OBJECTS)
eval_post: eval_post.c pile_ptr_int.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
@echo $@ >> .gitignore
@echo *.o >> .gitignore
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
@echo $@ >> .gitignore
pile_ptr_int_skel.o: pile_ptr_int.h
pile_ptr_int.o: pile_ptr_int.h
pile_array_int.o: pile_array_int.h
.PHONY: clean all
clean:
rm -f *.o eval_post .gitignore
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment