Michaël Lemaire
bfd25bcf42
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@199 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
21 lines
405 B
Makefile
21 lines
405 B
Makefile
SOURCES=$(wildcard *.c)
|
|
OBJECTS=${SOURCES:.c=.o}
|
|
HEADERS=$(wildcard shared/*.h *.h)
|
|
RESULT=libpaysages.so
|
|
CC_FLAGS=-g -pg -Wall $(shell pkg-config --cflags glib-2.0)
|
|
CC_LDFLAGS=$(shell pkg-config --libs glib-2.0)
|
|
|
|
all:${RESULT}
|
|
|
|
clean:
|
|
rm -f ${OBJECTS}
|
|
rm -f ${RESULT}
|
|
|
|
%.o:%.c ${HEADERS}
|
|
${CC} -c ${CC_FLAGS} $< -o $@
|
|
|
|
${RESULT}:${OBJECTS}
|
|
${CC} -o $@ -shared -Wl ${CC_LDFLAGS} $*
|
|
|
|
.PHONY:all clean
|
|
|