From ae59e9c14f384f9b0e0571a74faee0e1277a11ea Mon Sep 17 00:00:00 2001 From: Vlasta Vesely Date: Sat, 19 May 2018 16:51:25 +0200 Subject: [PATCH] update makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3d87939..4019f98 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ .PHONY: main test install uninstall clean -OBJS = syllable.o utf8.o transliteration.o iast.o iast-czech.o encoder.o +SRCFILES := $(shell find . -type f -name "*.c") +OBJFILES := $(patsubst %.c, %.o, $(SRCFILES)) -iast: main.o $(OBJS) +iast: main.o $(OBJFILES) $(CC) $^ -o $@ test: iast