aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-10-24 22:47:44 -0700
committerMichael Forney <mforney@mforney.org>2024-03-24 02:41:18 -0700
commit731e7a2f3bf18baa4d4ce966006637ee13c5651a (patch)
tree8bc4457c7c663b544ccc0386dbabcccd7259a45a /Makefile
parent7585cbb758b7bc2169cba42b7665d46f0c57db93 (diff)
Add support for C23 attribute syntax
Currently, all attributes are ignored. References: https://todo.sr.ht/~mcf/cproc/68
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 659181d..d52da1b 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@ $(objdir)/cproc: $(DRIVER_OBJ)
$(CC) $(LDFLAGS) -o $@ $(DRIVER_OBJ)
SRC=\
+ attr.c\
decl.c\
eval.c\
expr.c\
@@ -46,6 +47,7 @@ OBJ=$(SRC:%.c=$(objdir)/%.o)
$(objdir)/cproc-qbe: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ)
+$(objdir)/attr.o : attr.c util.h cc.h $(stagedeps) ; $(CC) $(CFLAGS) -c -o $@ attr.c
$(objdir)/decl.o : decl.c util.h cc.h $(stagedeps) ; $(CC) $(CFLAGS) -c -o $@ decl.c
$(objdir)/driver.o : driver.c util.h config.h $(stagedeps) ; $(CC) $(CFLAGS) -c -o $@ driver.c
$(objdir)/eval.o : eval.c util.h cc.h $(stagedeps) ; $(CC) $(CFLAGS) -c -o $@ eval.c