Commit df9f3546 authored by Sebastian Ramacher's avatar Sebastian Ramacher

add debug target to examples/Makefile

parent 156e1648
......@@ -3,4 +3,5 @@
*.a
*.so
examples/example_1
examples/example_1-debug
tests/girara_test
......@@ -48,7 +48,7 @@ ${PROJECT}-debug: ${DOBJECTS}
@${CC} -shared ${LDFLAGS} -o lib${PROJECT}-debug.so $(DOBJECTS)
debug: options ${PROJECT}-debug
@make -C examples
@make -C examples debug
test: debug
@make -C tests
......
......@@ -18,6 +18,12 @@ options:
@echo CC $<
@${CC} ${CFLAGS} -o $@ $< ../libgirara.a ${LIBS}
%-debug: %.c
@echo CC $<
@${CC} ${CFLAGS} ${DFLAGS} -o $@ $< ../libgirara-debug.a ${LIBS}
debug: options ${SOURCE:.c=-debug}
${OBJECTS}: ../config.mk
clean:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment