2019-04-01 16:04:56 +00:00
|
|
|
CC=clang
|
|
|
|
CFLAGS=-O3 -fomit-frame-pointer -Isrc/libdivsufsort/include -Isrc -DHAVE_CONFIG_H
|
|
|
|
OBJDIR=obj
|
|
|
|
LDFLAGS=
|
|
|
|
STRIP=strip
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: src/../%.c
|
|
|
|
@mkdir -p '$(@D)'
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
APP := lzsa
|
|
|
|
|
|
|
|
OBJS := $(OBJDIR)/src/main.o
|
2019-05-03 17:17:14 +00:00
|
|
|
OBJS += $(OBJDIR)/src/frame.o
|
2019-04-01 16:04:56 +00:00
|
|
|
OBJS += $(OBJDIR)/src/shrink.o
|
|
|
|
OBJS += $(OBJDIR)/src/expand.o
|
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/divsufsort.o
|
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/sssort.o
|
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/trsort.o
|
|
|
|
OBJS += $(OBJDIR)/src/libdivsufsort/lib/utils.o
|
|
|
|
|
|
|
|
all: $(APP)
|
|
|
|
|
|
|
|
$(APP): $(OBJS)
|
|
|
|
@mkdir -p ../../bin/posix
|
|
|
|
$(CC) $^ $(LDFLAGS) -o $(APP)
|
|
|
|
$(STRIP) $(APP)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf $(APP) $(OBJDIR)
|
|
|
|
|