aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-01-03 18:05:54 +0000
committerOmar Polo <op@omarpolo.com>2022-01-03 18:05:54 +0000
commit7c956fefc2035666770958e2cfaf278e20e6472a (patch)
treef102b5d9c4ffc08c42ebeac319cf2452eb454873 /Makefile
parent613c827165ea6fbd5ff7d7b6160f52a33978ed6f (diff)
track file dependency using -MMD if available
While here, move the SRCS variable to the configure and add the -includes in Makefile.local; it de-clutters the Makefile a bit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index e880c61..dc03d1d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,15 +14,11 @@ include Makefile.local
y.tab.c: parse.y
${YACC} -b y parse.y
-SRCS = gmid.c iri.c utf8.c ex.c server.c sandbox.c mime.c puny.c \
- utils.c log.c dirs.c fcgi.c proxy.c
-OBJS = ${SRCS:.c=.o} y.tab.o ${COMPAT}
+gmid: ${GMID_OBJS}
+ ${CC} ${GMID_OBJS} -o $@ ${LDFLAGS}
-gmid: ${OBJS}
- ${CC} ${OBJS} -o gmid ${LDFLAGS}
-
-gg: gg.o iri.o utf8.o ${COMPAT}
- ${CC} gg.o iri.o utf8.o ${COMPAT} -o $@ ${LDFLAGS}
+gg: ${GG_OBJS}
+ ${CC} ${GG_OBJS} -o $@ ${LDFLAGS}
static: ${OBJS}
${CC} ${OBJS} -o gmid ${LDFLAGS} ${STATIC}