2019-04-01 16:04:56 +00:00
|
|
|
CC=clang
|
2019-06-08 11:35:03 +00:00
|
|
|
CFLAGS=-O3 -fomit-frame-pointer -Isrc/libdivsufsort/include -Isrc
|
2019-04-01 16:04:56 +00:00
|
|
|
OBJDIR=obj
|
|
|
|
LDFLAGS=
|
|
|
|
STRIP=strip
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: src/../%.c
|
|
|
|
@mkdir -p '$(@D)'
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
APP := lzsa
|
|
|
|
|
2019-06-07 21:20:26 +00:00
|
|
|
OBJS += $(OBJDIR)/src/lzsa.o
|
|
|
|
OBJS += $(OBJDIR)/src/dictionary.o
|
|
|
|
OBJS += $(OBJDIR)/src/expand_block_v1.o
|
|
|
|
OBJS += $(OBJDIR)/src/expand_block_v2.o
|
|
|
|
OBJS += $(OBJDIR)/src/expand_context.o
|
|
|
|
OBJS += $(OBJDIR)/src/expand_inmem.o
|
|
|
|
OBJS += $(OBJDIR)/src/expand_streaming.o
|
2019-05-13 20:22:53 +00:00
|
|
|
OBJS += $(OBJDIR)/src/frame.o
|
2019-07-01 07:25:19 +00:00
|
|
|
OBJS += $(OBJDIR)/src/hashmap.o
|
2019-05-09 14:51:29 +00:00
|
|
|
OBJS += $(OBJDIR)/src/matchfinder.o
|
2019-06-07 21:20:26 +00:00
|
|
|
OBJS += $(OBJDIR)/src/shrink_block_v1.o
|
|
|
|
OBJS += $(OBJDIR)/src/shrink_block_v2.o
|
|
|
|
OBJS += $(OBJDIR)/src/shrink_context.o
|
|
|
|
OBJS += $(OBJDIR)/src/shrink_inmem.o
|
|
|
|
OBJS += $(OBJDIR)/src/shrink_streaming.o
|
|
|
|
OBJS += $(OBJDIR)/src/stream.o
|
2019-04-01 16:04:56 +00:00
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/divsufsort.o
|
2019-06-08 11:35:03 +00:00
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/divsufsort_utils.o
|
2019-04-01 16:04:56 +00:00
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/sssort.o
|
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/trsort.o
|
|
|
|
|
|
|
|
all: $(APP)
|
|
|
|
|
|
|
|
$(APP): $(OBJS)
|
|
|
|
@mkdir -p ../../bin/posix
|
|
|
|
$(CC) $^ $(LDFLAGS) -o $(APP)
|
|
|
|
$(STRIP) $(APP)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf $(APP) $(OBJDIR)
|
|
|
|
|