aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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