Makefile.in 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #########################################################################
  2. # Makefile for jpegoptim
  3. #
  4. #
  5. Version = 1.5.5
  6. PKGNAME = jpegoptim
  7. SHELL = /bin/sh
  8. DEFS = @DEFS@
  9. srcdir = @srcdir@
  10. VPATH = @srcdir@
  11. prefix = @prefix@
  12. exec_prefix = @exec_prefix@
  13. datarootdir = @datarootdir@
  14. datadir = @datadir@
  15. # Where to install the executables.
  16. bindir = @bindir@
  17. # Where to put libraries
  18. libdir = @libdir@
  19. # Where to put the Info files
  20. infodir = @infodir@
  21. # Where to put the manual pages.
  22. mandir = @mandir@
  23. CC = @CC@
  24. XCPPFLAGS = @CPPFLAGS@
  25. CFLAGS = @CFLAGS@ $(XCPPFLAGS) $(DEFS)
  26. ifeq ($(CC),gcc)
  27. CFLAGS += -Wall -Wformat -Werror=format-security
  28. #CFLAGS += -no-omit-frame-pointer -D_FORTIFY_SOURCE=2
  29. #CFLAGS += -fstack-protector --param=ssp-buffer-size=4 -fsanitize=address,undefined
  30. endif
  31. LDFLAGS = @LDFLAGS@
  32. LIBS = @LIBS@
  33. STRIP = strip
  34. PYTHON ?= python3
  35. INSTALL = @INSTALL@
  36. INSTALL_DATA = @INSTALL_DATA@
  37. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  38. @SET_MAKE@
  39. # should be no reason to modify lines below this
  40. #########################################################################
  41. DIRNAME = $(shell basename `pwd`)
  42. DISTNAME = $(PKGNAME)-$(Version)
  43. OBJS = $(PKGNAME).o jpegdest.o jpegsrc.o jpegmarker.o misc.o @GNUGETOPT@
  44. .PHONY: test
  45. all: $(PKGNAME)
  46. dssim.o: dssim.c
  47. $(CC) $(CFLAGS) -std=c99 -c
  48. $(PKGNAME): $(OBJS)
  49. $(CC) $(CFLAGS) -o $(PKGNAME) $(OBJS) $(LDFLAGS) $(LIBS)
  50. strip:
  51. for i in $(PKGNAME) ; do [ -x $$i ] && $(STRIP) $$i ; done
  52. clean:
  53. rm -f *~ *.o core a.out make.log \#*\# $(PKGNAME) $(OBJS)
  54. clean_all: clean
  55. rm -f Makefile config.h config.log config.cache config.status
  56. dist: clean_all
  57. (cd .. ; tar cvzf $(DISTNAME).tar.gz $(DIRNAME))
  58. backup: dist
  59. archive:
  60. git archive --format tar --prefix ${DISTNAME}/ -o ../${DISTNAME}.tar master
  61. gzip -v -9 ../${DISTNAME}.tar
  62. install: all install.dirs install.man
  63. $(INSTALL) -m 755 $(PKGNAME) $(DESTDIR)$(bindir)/$(PKGNAME)
  64. printable.man:
  65. groff -Tps -mandoc ./$(PKGNAME).1 >$(PKGNAME).ps
  66. groff -Tascii -mandoc ./$(PKGNAME).1 | tee $(PKGNAME).prn | sed 's/.//g' >$(PKGNAME).txt
  67. install.man: install.dirs
  68. $(INSTALL) -m 644 $(PKGNAME).1 $(DESTDIR)$(mandir)/man1/$(PKGNAME).1
  69. install.dirs:
  70. $(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
  71. $(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
  72. # a tradition !
  73. love:
  74. @echo "Not War - Eh?"
  75. spell:
  76. codespell -S .git -S tools
  77. test: all
  78. (cd test && $(PYTHON) test.py -v)
  79. # eof