Mercurial > cropper
diff 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 |
line wrap: on
line diff
--- a/Makefile Thu Mar 20 19:31:44 2008 +0100 +++ b/Makefile Thu Mar 20 20:01:38 2008 +0100 @@ -1,26 +1,34 @@ -# basic GTK+ app makefile -SOURCES = interface.c callbacks.c support.c main.c interface.h callbacks.h support.h -OBJS = ${SOURCES:.c=.o} -#CFLAGS = `gtk-config --cflags` -#LDADD = `gtk-config --libs --cflags` -datadir = /usr/local/share -CFLAGS = `pkg-config --cflags gtk+-2.0` -LDADD = `pkg-config --libs --cflags gtk+-2.0` -CC = gcc -PACKAGE = cropper +# makefile for cropper + +NAME = cropper + +SRC = interface.c callbacks.c support.c main.c +DEP = main.h callbacks.h support.h +OBJ = ${SRC:.c=.o} + +CC = gcc +CFLAGS = `pkg-config --cflags gtk+-2.0` +LDFLAGS = `pkg-config --libs --cflags gtk+-2.0` -all : ${OBJS} - ${CC} -o ${PACKAGE} ${OBJS} ${LDADD} +all: ${NAME} + +${NAME}: ${OBJ} ${DEP} + ${CC} -o ${NAME} ${OBJ} ${LDFLAGS} .c.o: ${CC} ${CFLAGS} -c $< +support.o: support.h +interface.o: main.h callbacks.h support.h +callbacks.o: main.h callbacks.h support.h +main.o: main.h support.h + + clean: rm -f *.o - rm -f ${PACKAGE} - -# end of file +realclean: clean + rm -f ${NAME}