Advertisement
Guest User

makefile1

a guest
Nov 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.63 KB | None | 0 0
  1. CC=g++
  2. CFLAGS=-I –O3 -Wall
  3. OBJ = serialDithering.o paralellDithering.o
  4.  
  5.  
  6. serialDithering: serialDithering.o
  7.     g++ -o $@ $^
  8.  
  9. paralellDithering: paralellDithering.o
  10.     $(CC) -pthread -o $@ $^
  11.  
  12. %.o: %.cpp $(DEPS)
  13.     $(CC) -c -o $@ $< $(CFLAGS)
  14.  
  15. test1: serialDithering
  16.     ./serialDithering oimage.txt mask.txt oDitheredImage.txt
  17.  
  18.  
  19. test2: paralellDithering
  20.     ./paralellDithering oimage.txt mask.txt oDitheredImage.txt 2
  21.  
  22.  
  23. test3: paralellDithering
  24.     ./paralellDithering oimage.txt mask.txt oDitheredImage.txt 3
  25.  
  26.  
  27. test4: paralellDithering
  28.     ./paralellDithering oimage.txt mask.txt oDitheredImage.txt 4
  29.  
  30.  
  31. clean:
  32.     rm -f *.o *~ core
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement