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 diff
1.1 --- a/Makefile Thu Mar 20 19:31:44 2008 +0100 1.2 +++ b/Makefile Thu Mar 20 20:01:38 2008 +0100 1.3 @@ -1,26 +1,34 @@ 1.4 -# basic GTK+ app makefile 1.5 -SOURCES = interface.c callbacks.c support.c main.c interface.h callbacks.h support.h 1.6 -OBJS = ${SOURCES:.c=.o} 1.7 -#CFLAGS = `gtk-config --cflags` 1.8 -#LDADD = `gtk-config --libs --cflags` 1.9 -datadir = /usr/local/share 1.10 -CFLAGS = `pkg-config --cflags gtk+-2.0` 1.11 -LDADD = `pkg-config --libs --cflags gtk+-2.0` 1.12 -CC = gcc 1.13 -PACKAGE = cropper 1.14 +# makefile for cropper 1.15 1.16 +NAME = cropper 1.17 1.18 +SRC = interface.c callbacks.c support.c main.c 1.19 +DEP = main.h callbacks.h support.h 1.20 +OBJ = ${SRC:.c=.o} 1.21 1.22 -all : ${OBJS} 1.23 - ${CC} -o ${PACKAGE} ${OBJS} ${LDADD} 1.24 +CC = gcc 1.25 +CFLAGS = `pkg-config --cflags gtk+-2.0` 1.26 +LDFLAGS = `pkg-config --libs --cflags gtk+-2.0` 1.27 + 1.28 + 1.29 + 1.30 +all: ${NAME} 1.31 + 1.32 +${NAME}: ${OBJ} ${DEP} 1.33 + ${CC} -o ${NAME} ${OBJ} ${LDFLAGS} 1.34 1.35 .c.o: 1.36 ${CC} ${CFLAGS} -c $< 1.37 1.38 1.39 +support.o: support.h 1.40 +interface.o: main.h callbacks.h support.h 1.41 +callbacks.o: main.h callbacks.h support.h 1.42 +main.o: main.h support.h 1.43 + 1.44 + 1.45 clean: 1.46 rm -f *.o 1.47 - rm -f ${PACKAGE} 1.48 1.49 - 1.50 -# end of file 1.51 +realclean: clean 1.52 + rm -f ${NAME}