summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-25 19:45:31 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-25 19:45:31 -0400
commit319c7568828a01fa5ba8ded0b560d852124ffb84 (patch)
tree7ca966f27a06885ae6451e730128f70994355a4a /Makefile
parent0c72419d193ca13edc8302cd8c151bbe80a4716f (diff)
add support for setting flags in source
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8f057b7..3853a27 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,12 @@ $(OBJDIR)/make.o: $(SRCDIR)/make.c
@mkdir -p $(@D)
$(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/make.c
+$(BINDIR)/maje: $(OBJDIR)/flags.o
+$(OBJDIR)/flags.o: $(SRCDIR)/maje.h
+$(OBJDIR)/flags.o: $(SRCDIR)/flags.c
+ @mkdir -p $(@D)
+ $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/flags.c
+
$(BINDIR)/maje: $(OBJDIR)/includes.o
$(OBJDIR)/includes.o: $(SRCDIR)/maje.h
$(OBJDIR)/includes.o: $(SRCDIR)/includes.c