diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-15 17:34:26 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-15 17:34:26 +0200 |
| commit | cfb1bec532525848427f0130c8a6834e5053cbcb (patch) | |
| tree | e81e04f9a9943118d61cb691b52dcebff92958c8 /Makefile | |
| parent | 878219c862cd772db54dfa92372678592935626f (diff) | |
| download | sdep-cfb1bec532525848427f0130c8a6834e5053cbcb.tar.gz sdep-cfb1bec532525848427f0130c8a6834e5053cbcb.zip | |
Added debug target to makefile
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -8,6 +8,8 @@ SCRIPTS = sdep-add sdep-checknow sdep-checkpast sdep-clear sdep-edit sdep-list | |||
| 8 | 8 | ||
| 9 | CPPFLAGS = -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\" | 9 | CPPFLAGS = -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\" |
| 10 | CFLAGS = -pedantic -Wall -Os ${CPPFLAGS} | 10 | CFLAGS = -pedantic -Wall -Os ${CPPFLAGS} |
| 11 | DBGFLAGS = -pedantic -Wall -Wextra \ | ||
| 12 | -fsanitize=address -fsanitize=undefined ${CPPFLAGS} | ||
| 11 | 13 | ||
| 12 | CC = cc | 14 | CC = cc |
| 13 | 15 | ||
| @@ -22,6 +24,9 @@ options: | |||
| 22 | sdep: | 24 | sdep: |
| 23 | ${CC} ${CFLAGS} -o sdep sdep.c | 25 | ${CC} ${CFLAGS} -o sdep sdep.c |
| 24 | 26 | ||
| 27 | debug: | ||
| 28 | ${CC} ${CFLAGS} -o sdep sdep.c | ||
| 29 | |||
| 25 | clean: | 30 | clean: |
| 26 | rm -rf sdep sdep-${VERSION}.tar.gz | 31 | rm -rf sdep sdep-${VERSION}.tar.gz |
| 27 | 32 | ||
| @@ -52,5 +57,5 @@ uninstall: | |||
| 52 | rm -rf ${DESTDIR}${PREFIX}/bin/sdep ${DESTDIR}${MANPREFIX}/man1/sdep.1 | 57 | rm -rf ${DESTDIR}${PREFIX}/bin/sdep ${DESTDIR}${MANPREFIX}/man1/sdep.1 |
| 53 | for s in ${SCRIPTS}; do rm -rf ${DESTDIR}${PREFIX}/bin/$$s; done | 58 | for s in ${SCRIPTS}; do rm -rf ${DESTDIR}${PREFIX}/bin/$$s; done |
| 54 | 59 | ||
| 55 | .PHONY: all options clean dist install scripts uninstall | 60 | .PHONY: all options debug clean dist install scripts uninstall |
| 56 | 61 | ||
