Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.54 KB | None | 0 0
  1. FLAG = -lpthread -lSDL -Wall -Werror
  2. LIB = libfractal/fractal.o libfractal/tools.o
  3.  
  4. all: main clean
  5.  
  6. main: main.o
  7.     @gcc -o main main.o $(LIB) $(FLAG)
  8.  
  9. testlib: libfractal/fractal.o test/testlib.o
  10.     @gcc -o test/fractal libfractal/fractal.o test/testlib.o -lcunit
  11.     @./test/fractal
  12.  
  13. main.o: main.c libfractal/fractal.h
  14.     @gcc -c main.c -o main.o
  15.  
  16. clean:
  17.     @rm -rf *.o
  18.     @rm -rf test/*.o
  19.  
  20. testlib.o: test/testlib.c libfractal/fractal.h
  21.     @gcc -c testlib.c -lcunit -o test/testlib.o
  22.  
  23. mrproper: clean
  24.     @rm -rf main
  25.     @rm -rf test/fractal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement