2011-12-23 22:00:19 +00:00
|
|
|
SOURCES=$(wildcard *.c)
|
|
|
|
OBJECTS=${SOURCES:.c=.o}
|
|
|
|
HEADERS=$(wildcard shared/*.h *.h)
|
|
|
|
RESULT=libpaysages.so
|
2012-01-10 20:51:27 +00:00
|
|
|
CC_FLAGS=-g -pg -Wall $(shell pkg-config --cflags glib-2.0 gthread-2.0)
|
|
|
|
CC_LDFLAGS=$(shell pkg-config --libs glib-2.0 gthread-2.0) -lIL -lILU
|
2011-12-23 22:00:19 +00:00
|
|
|
|
|
|
|
all:${RESULT}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJECTS}
|
|
|
|
rm -f ${RESULT}
|
|
|
|
|
|
|
|
%.o:%.c ${HEADERS}
|
|
|
|
${CC} -c ${CC_FLAGS} $< -o $@
|
|
|
|
|
|
|
|
${RESULT}:${OBJECTS}
|
2011-12-23 22:39:13 +00:00
|
|
|
${CC} $^ -shared ${CC_LDFLAGS} -o $@
|
2011-12-23 22:00:19 +00:00
|
|
|
|
|
|
|
.PHONY:all clean
|
|
|
|
|