Skip to content
Snippets Groups Projects
Commit 785ee5c3 authored by Salson Mikael's avatar Salson Mikael
Browse files

Refactor LDFLAGS options in Makefile

parent 424699ca
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,12 @@ CXXFLAGS=-O2 -Wall -g -DNDEBUG
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)
EXE=$(SRC:.cpp=)
LDFLAGS=-lsdsl -lz -lhts
all: $(EXE)
$(EXE): %: %.o lib/gzstream.o
$(CXX) -o $@ $^ -l sdsl -lz
$(CXX) -o $@ $^ $(LDFLAGS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment