From 9bcf1e97960c0da7322a868efdbc07e2650716fe Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 9 Jan 2021 09:01:05 +0000 Subject: Extra libs: ap.lib aPLib support with apultra. --- tools/apultra/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tools/apultra/Makefile (limited to 'tools/apultra/Makefile') diff --git a/tools/apultra/Makefile b/tools/apultra/Makefile new file mode 100644 index 0000000..308c9aa --- /dev/null +++ b/tools/apultra/Makefile @@ -0,0 +1,31 @@ +#CC=clang +CC=gcc +CFLAGS=-O3 -g -fomit-frame-pointer -Isrc/libdivsufsort/include -Isrc +OBJDIR=obj +LDFLAGS= + +$(OBJDIR)/%.o: src/../%.c + @mkdir -p '$(@D)' + $(CC) $(CFLAGS) -c $< -o $@ + +APP := apultra + +OBJS += $(OBJDIR)/src/apultra.o +OBJS += $(OBJDIR)/src/expand.o +OBJS += $(OBJDIR)/src/matchfinder.o +OBJS += $(OBJDIR)/src/shrink.o +OBJS += $(OBJDIR)/src/libdivsufsort/lib/divsufsort.o +OBJS += $(OBJDIR)/src/libdivsufsort/lib/divsufsort_utils.o +OBJS += $(OBJDIR)/src/libdivsufsort/lib/sssort.o +OBJS += $(OBJDIR)/src/libdivsufsort/lib/trsort.o + +all: $(APP) + +$(APP): $(OBJS) + $(CC) $^ $(LDFLAGS) -o $(APP) + cp $(APP) ../../bin + @rm -rf $(APP) $(OBJDIR) + +clean: + @rm -rf $(APP) $(OBJDIR) + -- cgit v1.2.3