cropper
annotate Makefile @ 9:7e1cf00de1df
completely refactored makefile; removed interface.h
author | meillo@marmaro.de |
---|---|
date | Thu, 20 Mar 2008 20:01:38 +0100 |
parents | 2f11ab3e6047 |
children | 7dbf3879939a |
rev | line source |
---|---|
meillo@9 | 1 # makefile for cropper |
meillo@0 | 2 |
meillo@9 | 3 NAME = cropper |
meillo@0 | 4 |
meillo@9 | 5 SRC = interface.c callbacks.c support.c main.c |
meillo@9 | 6 DEP = main.h callbacks.h support.h |
meillo@9 | 7 OBJ = ${SRC:.c=.o} |
meillo@0 | 8 |
meillo@9 | 9 CC = gcc |
meillo@9 | 10 CFLAGS = `pkg-config --cflags gtk+-2.0` |
meillo@9 | 11 LDFLAGS = `pkg-config --libs --cflags gtk+-2.0` |
meillo@9 | 12 |
meillo@9 | 13 |
meillo@9 | 14 |
meillo@9 | 15 all: ${NAME} |
meillo@9 | 16 |
meillo@9 | 17 ${NAME}: ${OBJ} ${DEP} |
meillo@9 | 18 ${CC} -o ${NAME} ${OBJ} ${LDFLAGS} |
meillo@0 | 19 |
meillo@0 | 20 .c.o: |
meillo@0 | 21 ${CC} ${CFLAGS} -c $< |
meillo@0 | 22 |
meillo@2 | 23 |
meillo@9 | 24 support.o: support.h |
meillo@9 | 25 interface.o: main.h callbacks.h support.h |
meillo@9 | 26 callbacks.o: main.h callbacks.h support.h |
meillo@9 | 27 main.o: main.h support.h |
meillo@9 | 28 |
meillo@9 | 29 |
meillo@2 | 30 clean: |
meillo@4 | 31 rm -f *.o |
meillo@2 | 32 |
meillo@9 | 33 realclean: clean |
meillo@9 | 34 rm -f ${NAME} |