File: Makefile.in

package info (click to toggle)
jpegoptim 1.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: sh: 3,222; ansic: 1,861; makefile: 67
file content (105 lines) | stat: -rw-r--r-- 2,310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#########################################################################
# $Id: fa7ef59d0109d2051dc5f46a1e46f10f523eb7fd $ 
# 
# Makefile for jpegoptim
#
Version = 1.4.7
PKGNAME = jpegoptim

SHELL = /bin/sh

DEFS = @DEFS@

srcdir = @srcdir@
VPATH = @srcdir@

prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@

# Where to install the executables.
bindir = @bindir@

# Where to put libraries
libdir = @libdir@

# Where to put the Info files
infodir = @infodir@

# Where to put the manual pages.
mandir = @mandir@



CC        = @CC@ 
XCPPFLAGS = @CPPFLAGS@
CFLAGS    = -D_FILE_OFFSET_BITS=64 @CFLAGS@ $(XCPPFLAGS) $(DEFS)
#CFLAGS	 += -Wall -Wformat -Werror=format-security
#CFLAGS	 += -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fsanitize=address,undefined
LDFLAGS   = @LDFLAGS@
LIBS      = @LIBS@
STRIP     = strip


INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

@SET_MAKE@

# should be no reason to modify lines below this
#########################################################################

DIRNAME = $(shell basename `pwd`) 
DISTNAME  = $(PKGNAME)-$(Version)

OBJS = $(PKGNAME).o jpegdest.o jpegsrc.o misc.o @GNUGETOPT@

all:	$(PKGNAME) 

dssim.o:	dssim.c
	$(CC) $(CFLAGS) -std=c99 -c

$(PKGNAME):	$(OBJS) 
	$(CC) $(CFLAGS) -o $(PKGNAME) $(OBJS) $(LDFLAGS) $(LIBS) 


strip:
	for i in $(PKGNAME) ; do [ -x $$i ] && $(STRIP) $$i ; done

clean:
	rm -f *~ *.o core a.out make.log \#*\# $(PKGNAME) $(OBJS)

clean_all: clean
	rm -f Makefile config.h config.log config.cache config.status

dist:	clean_all
	(cd .. ; tar cvzf $(DISTNAME).tar.gz $(DIRNAME))

backup:	dist

archive:
	git archive --format tar --prefix ${DISTNAME}/ -o ../${DISTNAME}.tar master
	gzip -v -9 ../${DISTNAME}.tar


install: all install.dirs install.man
	$(INSTALL) -m 755 $(PKGNAME) $(DESTDIR)$(bindir)/$(PKGNAME)

printable.man:
	groff -Tps -mandoc ./$(PKGNAME).1 >$(PKGNAME).ps
	groff -Tascii -mandoc ./$(PKGNAME).1 | tee $(PKGNAME).prn | sed 's/.//g' >$(PKGNAME).txt

install.man: install.dirs
	$(INSTALL) -m 644 $(PKGNAME).1 $(DESTDIR)$(mandir)/man1/$(PKGNAME).1

install.dirs:
	$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
	$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)

# a tradition !
love:	
	@echo "Not War - Eh?"
# eof