mirror of
https://github.com/chhylp123/hifiasm.git
synced 2026-09-26 08:18:12 +08:00
34 lines
751 B
Makefile
34 lines
751 B
Makefile
CXX= g++
|
|
CXXFLAGS= -g -O3 -msse4.2 -mpopcnt -fomit-frame-pointer -Wall
|
|
CPPFLAGS=
|
|
INCLUDES=
|
|
OBJS= Output.o CommandLines.o Process_Read.o Assembly.o Hash_Table.o \
|
|
POA.o Correct.o Levenshtein_distance.o Overlaps.o Trio.o kthread.o Purge_Dups.o \
|
|
htab.o hist.o sketch.o anchor.o sys.o
|
|
EXE= hifiasm
|
|
LIBS= -lz -lpthread -lm
|
|
|
|
ifneq ($(asan),)
|
|
CXXFLAGS+=-fsanitize=address
|
|
LIBS+=-fsanitize=address
|
|
endif
|
|
|
|
.SUFFIXES:.cpp .o
|
|
.PHONY:all clean depend
|
|
|
|
.cpp.o:
|
|
$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $(INCLUDES) $< -o $@
|
|
|
|
all:$(EXE)
|
|
|
|
$(EXE):$(OBJS) main.o
|
|
$(CXX) $(CXXFLAGS) $^ -o $@ $(LIBS)
|
|
|
|
clean:
|
|
rm -fr gmon.out *.o a.out $(EXE) *~ *.a *.dSYM
|
|
|
|
depend:
|
|
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CPPFLAGS) $(DFLAGS) -- *.cpp)
|
|
|
|
# DO NOT DELETE
|