diff options
author | Omar Polo <op@omarpolo.com> | 2022-01-03 18:05:54 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-01-03 18:05:54 +0000 |
commit | 7c956fefc2035666770958e2cfaf278e20e6472a (patch) | |
tree | f102b5d9c4ffc08c42ebeac319cf2452eb454873 /Makefile | |
parent | 613c827165ea6fbd5ff7d7b6160f52a33978ed6f (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-- | Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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} |