Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OBJS = main.o bmp.h transformations.h
- SOURCE = main.c bmp.c transformations.c
- HEADER = bmp.h transformations.h
- OUT = main.exe
- CC = gcc
- FLAGS = -g -c -Wall
- LFLAGS = -Werror -Wall
- all: $(OBJS)
- $(CC) -g $(OBJS) -o $(OUT) $(LFLAGS)
- val:
- valgrind --tool=memcheck --leak-check=yes ./*
- check:
- cppcheck --enable=performance,unusedFunction --error-exitcode=1 *.c
- main.o: main.c
- $(CC) $(FLAGS) main.c -std=c11 -Werror -Wall -Wconversion -lm
- bmp.o: bmp.c
- $(CC) $(FLAGS) bmp.c -std=c11 -Werror -Wall -Wconversion -lm
- transformations.o: transformations.c
- $(CC) $(FLAGS) transformations.c -std=c11 -Werror -Wall -Wconversion -lm
- clean:
- rm -f $(OBJS) $(OUT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement