From 7f865a6146b0b5ff3b0d44171ffc2b1028a9acd1 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 9 Jun 2015 11:54:15 +0100 Subject: [PATCH] Makefile: add textevent processing --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index da2f8fb..49ad4d0 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ OBJS_FE_GTK = $(SRCS_FE_GTK:.c=.o) OBJS_FE_TEXT = $(SRCS_FE_TEXT:.c=.o) CFLAGS += -Os +HOSTCC ?= $(CC) ALL_TOOLS=ixchat @@ -60,6 +61,14 @@ $(DESTDIR)$(libdir)/xchat/plugins/%: % install -d $(DESTDIR)$(libdir)/xchat/plugins install $(INSTALL_FLAGS) 644 $< $@ +src/make-te: src/make-te.c + $(HOSTCC) $< -o $@ + +src/common/textevents.h src/common/textenums.h: src/common/textevents.in src/make-te + src/make-te < src/common/textevents.in 2>src/common/textenums.h 1>src/common/textevents.h + +src/common/proto-irc.c: src/common/textevents.h src/common/textenums.h + $(PERL_HEADERS): $(PERL_HEADERS_INPUT) plugins/perl/generate_header -- 2.11.4.GIT