Makefile 552 B

12345678910111213141516171819202122
  1. APP=hypercollage
  2. VERSION=1.10
  3. ARCH_TYPE=`uname -m`
  4. all:
  5. gcc -Wall -std=c99 -pedantic -O3 -o ${APP} -Isrc src/*.c -lm -fopenmp
  6. debug:
  7. gcc -Wall -std=c99 -pedantic -g -o ${APP} -Isrc src/*.c -lm -fopenmp
  8. clean:
  9. rm -f src/*.plist unittests/*.plist ${APP} unittests/tests *.png
  10. install:
  11. mkdir -p $(DESTDIR)/usr/bin
  12. mkdir -m 755 -p $(DESTDIR)/usr/share/man/man1
  13. install -m 755 --strip $(APP) $(DESTDIR)/usr/bin
  14. install -m 644 man/$(APP).1.gz $(DESTDIR)/usr/share/man/man1
  15. uninstall:
  16. rm -f /usr/share/man/man1/${APP}.1.gz
  17. rm -f /usr/bin/${APP}