prout

print out papers using libcups
git clone git://z3bra.org/prout
Log | Files | Refs | README | LICENSE

commit 4489a3be45967d9fcf44eeb7ca0b1b6909df5a5f
parent 7d837b22b0618595aef4ab3bc2e5e6ae7e2b0ddd
Author: z3bra <willy@mailoo.org>
Date:   Wed Feb 12 14:29:27 2014

Split makefile

Diffstat:
 Makefile  | 28 +++++-----------------------
 config.mk |  9 +++++++++
 2 files changed, 14 insertions(+), 23 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,22 +1,7 @@ -#irc.freenode.net# BEGINNING OF THE FILE +include config.mk -# Compilation settings -PROG=prout -CC=gcc -CFLAGS+=-Wall -I inc -pedantic `cups-config --cflags` -LDFLAGS+=`cups-config --libs` - -# Command paths -RM=/bin/rm - - -PREFIX:=/usr -MANPREFIX:=${PREFIX}/share/man - - -.SUFFIXES: -.SUFFIXES: .c .h .o -.PHONY : all clean init install uninstall +.SUFFIXES: .c .o +.PHONY : all clean install uninstall .c.o: @echo -e "CC $<" @@ -24,14 +9,12 @@ MANPREFIX:=${PREFIX}/share/man prout: prout.o @echo -e "LD prout" - @${CC} $^ -o $@ ${LDFLAGS} + @${LD} $^ -o $@ ${LDFLAGS} all : prout clean : - ${RM} -f prout - ${RM} -f *.o - ${RM} -f *~ + ${RM} -f prout *.o *~ install: ${BIN} install -D -m 0755 bin/prout ${DESTDIR}${PREFIX}/bin/prout @@ -40,4 +23,3 @@ install: ${BIN} uninstall: ${RM} ${DESTDIR}${PREFIX}/bin/prout ${RM} ${DESTDIR}${MANPREFIX}/man1/prout.1.gz -## EOF diff --git a/config.mk b/config.mk @@ -0,0 +1,9 @@ +# paths +PREFIX:=/usr +MANPREFIX:=${PREFIX}/share/man + +CC = cc +LD= ${CC} +RM = rm +CFLAGS = -Wall -I inc -pedantic `cups-config --cflags` +LDFLAGS = `cups-config --libs`