aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-25 00:04:06 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-25 00:04:06 -0400
commitf72add79bdc4b72a54fb72e512d3a15263e7484c (patch)
tree78bc1b27b7c58e019237fe0b8661fa00aa41c8ee /Makefile
parent9da9ca84dd14ca25f46616298db9b840f62aaf11 (diff)
downloadrunes-f72add79bdc4b72a54fb72e512d3a15263e7484c.tar.gz
runes-f72add79bdc4b72a54fb72e512d3a15263e7484c.zip
start refactoring to draw parsed text to an intermediary data structure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 866ed58..5b3933e 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ OBJ = $(BUILD)runes.o \
$(BUILD)display.o \
$(BUILD)term.o \
$(BUILD)parser.o \
+ $(BUILD)screen.o \
$(BUILD)config.o \
$(BUILD)window-xlib.o \
$(BUILD)pty-unix.o
@@ -27,9 +28,14 @@ $(BUILD)%.o: $(SRC)%.c
@$(MAKEDEPEND) -o $(<:$(SRC)%.c=$(BUILD).%.d) $<
$(CC) $(ALLCFLAGS) -c -o $@ $<
+$(SRC)screen.c: $(SRC)parser.h
+
$(SRC)%.c: $(SRC)%.l
$(LEX) -o $@ $<
+$(SRC)%.h: $(SRC)%.l
+ $(LEX) --header-file=$(<:.l=.h) -o /dev/null $<
+
clean:
rm -f $(OUT) $(OBJ) $(OBJ:$(BUILD)%.o=$(BUILD).%.d)
@rmdir -p $(BUILD) > /dev/null 2>&1