Advertisement
kknndd_

Untitled

Apr 25th, 2021
1,425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.67 KB | None | 0 0
  1. OBJS    = main.o bmp.h transformations.h
  2. SOURCE  = main.c bmp.c transformations.c
  3. HEADER  = bmp.h transformations.h
  4. OUT = main.exe
  5. CC   = gcc
  6. FLAGS    = -g -c -Wall
  7. LFLAGS   = -Werror -Wall
  8.  
  9. all: $(OBJS)
  10.     $(CC) -g $(OBJS) -o $(OUT) $(LFLAGS)
  11.  
  12. val:
  13.     valgrind --tool=memcheck --leak-check=yes ./*
  14.  
  15. check:
  16.     cppcheck --enable=performance,unusedFunction --error-exitcode=1 *.c
  17.  
  18. main.o: main.c
  19.     $(CC) $(FLAGS) main.c -std=c11 -Werror -Wall -Wconversion -lm
  20.  
  21. bmp.o: bmp.c
  22.     $(CC) $(FLAGS) bmp.c -std=c11 -Werror -Wall -Wconversion -lm
  23.  
  24. transformations.o: transformations.c
  25.     $(CC) $(FLAGS) transformations.c -std=c11 -Werror -Wall -Wconversion -lm
  26.  
  27. clean:
  28.     rm -f $(OBJS) $(OUT)
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement