Advertisement
kaQnub

makefile with height

Jan 15th, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.02 KB | None | 0 0
  1. OUTPUT ?= $(wildcard *.png)
  2. HEIGHT ?= 144
  3. ALL: image.h image_pgm.h preview.png
  4.  
  5. # Full-Color images
  6. image.h: pnmtorle pnmwindshieldwiper *.png
  7.     pngtopnm *.png | ./pnmwindshieldwiper | pnmscale -height $(basename $(HEIGHT)) | ./pnmtorle > $(basename $(OUTPUT))_$(basename $(HEIGHT))_FC_POV_data.h
  8.  
  9. #Single-Color images
  10. image_pgm.h: pgmtorle pnmwindshieldwiper *.png
  11.     pngtopnm *.png | ./pnmwindshieldwiper | pnmscale -height $(basename $(HEIGHT)) | ./pgmtorle > $(basename $(OUTPUT))_$(basename $(HEIGHT))_SC_POV_data.h
  12.  
  13. preview.png: pnmwindshieldwiper *.png
  14.     pngtopnm $(basename $(OUTPUT)).png | ./pnmwindshieldwiper | pnmscale -height $(basename $(HEIGHT)) | pnmtopng > $(basename $(OUTPUT))_$(basename $(HEIGHT))_preview.png
  15.  
  16. pnmtorle: pnmtorle.cc
  17.     g++ -O2 pnmtorle.cc -o pnmtorle -g -lm
  18.  
  19. pgmtorle: pgmtorle.cc
  20.     g++ -O2 pgmtorle.cc -o pgmtorle -g -lm
  21.  
  22. pnmwindshieldwiper: pnmwindshieldwiper.cc
  23.     g++ -O2 pnmwindshieldwiper.cc -o pnmwindshieldwiper -g -lm
  24.  
  25. pnmtoblc: pnmtoblc.cc
  26.     g++ -O2 pnmtoblc.cc -o pnmtoblc -g -lm
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement