Mercurial > resize-gd
comparison Makefile @ 12:61ca4934fb34
improved Makefile
author | meillo@marmaro.de |
---|---|
date | Sat, 14 Jun 2008 19:11:21 +0200 |
parents | aa24986b8969 |
children |
comparison
equal
deleted
inserted
replaced
11:7cc162bbff25 | 12:61ca4934fb34 |
---|---|
4 | 4 |
5 # extracts VERSION from the sources | 5 # extracts VERSION from the sources |
6 VERSION=$(shell cat *.c | sed -n '/define[ \t]*VERSION/ s/.*"\([^"]*\)".*/\1/p' ) | 6 VERSION=$(shell cat *.c | sed -n '/define[ \t]*VERSION/ s/.*"\([^"]*\)".*/\1/p' ) |
7 NV=${NAME}-${VERSION} | 7 NV=${NAME}-${VERSION} |
8 | 8 |
9 DOCS = | 9 DOCS = COPYRIGHT ChangeLog |
10 | 10 |
11 # paths | 11 # paths |
12 PREFIX = /usr/local | 12 PREFIX = /usr/local |
13 BINDIR = ${PREFIX}/bin | 13 BINDIR = ${PREFIX}/bin |
14 MANDIR = ${PREFIX}/share/man | 14 MANDIR = ${PREFIX}/share/man |
16 # compile env | 16 # compile env |
17 CC = gcc | 17 CC = gcc |
18 LD = ${CC} | 18 LD = ${CC} |
19 DEBUG = -g | 19 DEBUG = -g |
20 LIBS = -lgd | 20 LIBS = -lgd |
21 CFLAGS = -Wall -pedantic -c ${DEBUG} | 21 CFLAGS = -Wall -ansi -pedantic -c ${DEBUG} |
22 LDFLAGS = -Wall -pedantic ${DEBUG} $(LIBS) | 22 LDFLAGS = -Wall -ansi -pedantic ${DEBUG} $(LIBS) |
23 | 23 |
24 # files | 24 # files |
25 SRC=resize-gd.c | 25 SRC=resize-gd.c |
26 OBJ=$(SRC:.c=.o) | 26 OBJ=$(SRC:.c=.o) |
27 DEP = | 27 DEP = |
99 rm -f *.o | 99 rm -f *.o |
100 | 100 |
101 | 101 |
102 .PHONY: realclean | 102 .PHONY: realclean |
103 realclean: clean | 103 realclean: clean |
104 rm -f ${NAME} ChangeLog | 104 rm -f ${NAME} |