1 |
vapier 09/04/02 23:22:40 |
2 |
|
3 |
Modified: Makefile |
4 |
Log: |
5 |
Strip makefile down and version bump. |
6 |
(Portage version: 2.2_rc28/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.2 media-gfx/pngcrush/files/Makefile |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/pngcrush/files/Makefile?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/pngcrush/files/Makefile?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/pngcrush/files/Makefile?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: Makefile |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/pngcrush/files/Makefile,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- Makefile 14 Mar 2009 11:27:26 -0000 1.1 |
22 |
+++ Makefile 2 Apr 2009 23:22:40 -0000 1.2 |
23 |
@@ -1,69 +1,7 @@ |
24 |
-# Sample makefile for pngcrush using gcc and GNU make. |
25 |
-# Glenn Randers-Pehrson |
26 |
-# Last modified: 19 February 2005 |
27 |
-# Kapil Hari Paranjape |
28 |
-# Last modified: 12 June 2008 |
29 |
-# |
30 |
-# Invoke this makefile from a shell prompt in the usual way; for example: |
31 |
-# |
32 |
-# make -f Makefile |
33 |
-# |
34 |
-# This makefile builds a dynamically linked executable. |
35 |
- |
36 |
-# macros -------------------------------------------------------------------- |
37 |
- |
38 |
-GAS_VERSION := $(shell as --version | sed -n -e's/GNU assembler (.*) //p') |
39 |
- |
40 |
-PNGINC = /usr/include |
41 |
- |
42 |
-CC ?= gcc |
43 |
-RM = rm -f |
44 |
- |
45 |
+GAS_VERSION = $(shell as --version | sed -n -e's/GNU assembler (.*) //p') |
46 |
CFLAGS += -I. -Wall |
47 |
- |
48 |
-O = .o |
49 |
-E = |
50 |
- |
51 |
-# additional defines |
52 |
-DEFINES = -DPNG_USE_PNGGCCRD -DPNG_iCCP_SUPPORTED \ |
53 |
+CPPFLAGS += -DPNG_USE_PNGGCCRD -DPNG_iCCP_SUPPORTED \ |
54 |
-DPNG_iTXt_SUPPORTED -DPNG_USE_GLOBAL_ARRAYS \ |
55 |
- -DGAS_VERSION="\"${GAS_VERSION}\"" \ |
56 |
- |
57 |
-PNGCRUSH = pngcrush |
58 |
- |
59 |
-LIBS = -lpng -lz |
60 |
- |
61 |
-OBJS = pngcrush$(O) |
62 |
- |
63 |
-EXES = $(PNGCRUSH)$(E) |
64 |
- |
65 |
- |
66 |
-# implicit make rules ------------------------------------------------------- |
67 |
- |
68 |
-.c$(O): png.h cexcept.h $(ZHDR) |
69 |
- $(CC) -c $(CFLAGS) $(DEFINES) $< |
70 |
- |
71 |
- |
72 |
-# dependencies -------------------------------------------------------------- |
73 |
- |
74 |
-all: $(EXES) |
75 |
- |
76 |
-png.h: |
77 |
- ln -s $(PNGINC)/png.h png.h |
78 |
- |
79 |
-pngcrush$(O): pngcrush.c cexcept.h |
80 |
- $(CC) -c $(CFLAGS) $(DEFINES) $< |
81 |
- |
82 |
-$(PNGCRUSH)$(E): $(OBJS) |
83 |
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) |
84 |
- |
85 |
-# maintenance --------------------------------------------------------------- |
86 |
- |
87 |
-clean: |
88 |
- $(RM) $(EXES) $(OBJS) png.h |
89 |
- |
90 |
-install: |
91 |
- mkdir -p $(DESTDIR)/usr/bin/ |
92 |
- cp $(PNGCRUSH)$(E) $(DESTDIR)/usr/bin/ |
93 |
- chmod 0755 $(DESTDIR)/usr/bin/$(PNGCRUSH)$(E) |
94 |
- |
95 |
+ -DGAS_VERSION="\"${GAS_VERSION}\"" |
96 |
+LDLIBS += -lpng -lz |
97 |
+all: pngcrush |