Michaël Lemaire
ef68f38061
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@200 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
21 lines
462 B
Makefile
21 lines
462 B
Makefile
SOURCES=$(wildcard *.c)
|
|
OBJECTS=${SOURCES:.c=.o}
|
|
HEADERS=$(wildcard ../lib_paysages/shared/*.h ../lib_paysages/*.h *.h)
|
|
RESULT=paysages-gtk
|
|
CC_FLAGS=-g -pg -Wall $(shell pkg-config --cflags gtk+-3.0) -I..
|
|
CC_LDFLAGS=$(shell pkg-config --libs gtk+-3.0) -L../lib_paysages/ -lpaysages
|
|
|
|
all:${RESULT}
|
|
|
|
clean:
|
|
rm -f ${OBJECTS}
|
|
rm -f ${RESULT}
|
|
|
|
%.o:%.c ${HEADERS}
|
|
${CC} -c ${CC_FLAGS} $< -o $@
|
|
|
|
${RESULT}:${OBJECTS}
|
|
${CC} $^ ${CC_LDFLAGS} -o $@
|
|
|
|
.PHONY:all clean
|
|
|