aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-08 14:43:29 +0000
committerOmar Polo <op@omarpolo.com>2023-06-08 14:43:29 +0000
commit68e38f49b234474bdd123120de004de96fae8715 (patch)
tree407b5b408460a651748f4f7c581ae8571be38403 /Makefile
parent34836095937077a427c4810d21833a2b21000a86 (diff)
use -MMD if the compiler supports it
it's better than the previous Makefile.depend approach since this automatically adapts to the included headers without requiring manual intervention to regen the list.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dad03f3..d0d935b 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ static: ${GMID_OBJS} ${GE_OBJS} ${GG_OBJS}
${CC} ${GG_OBJS} -o gg ${LDFLAGS} ${STATIC}
clean:
- rm -f *.o compat/*.o y.tab.c y.tab.h y.output gmid ge gg
+ rm -f *.[do] compat/*.[do] y.tab.c y.tab.h y.output gmid ge gg
rm -f compile_flags.txt
${MAKE} -C regress clean
@@ -130,3 +130,23 @@ ${DISTNAME}.tar.gz: ${DISTFILES}
${MAKE} -C regress DESTDIR=${PWD}/.dist/${DISTNAME}/regress dist
cd .dist/ && tar zcf ../$@ ${DISTNAME}
rm -rf .dist/
+
+# -- dependencies --
+
+-include config.d
+-include dirs.d
+-include fcgi.d
+-include gg.d
+-include gmid.d
+-include iri.d
+-include log.d
+-include logger.d
+-include mime.d
+-include proc.d
+-include proxy.d
+-include puny.d
+-include sandbox.d
+-include server.d
+-include utf8.d
+-include utils.d
+-include y.tab.d