Skip to content

Commit

Permalink
[fix/build] Fix compilation fail on github
Browse files Browse the repository at this point in the history
  • Loading branch information
isinaltinkaya committed Jun 25, 2023
1 parent 3bf1675 commit 5fbfe7a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Makefile
Expand Up @@ -34,9 +34,6 @@ LIBS := -lz -lm -lbz2 -llzma -lcurl -lpthread
$(info [INFO] Make received LIBS="$(LIBS)")


# avoid using assert statements for safety
# define NDEBUG to disable assert statements
CXXFLAGS := -DNDEBUG
$(info [INFO] Make received CXXFLAGS="$(CXXFLAGS)")

OPTIM_FLAGS := -O3
Expand All @@ -56,7 +53,7 @@ DEV_MODE=1
OPTIM_FLAGS := -O0
CXXFLAGS += -g -Wall $(OPTIM_FLAGS) -save-temps -v
$(info )
$(info [INFO] Make received CXXFLAGS="$(CXXFLAGS)")
$(info [INFO] Make updated CXXFLAGS="$(CXXFLAGS)")
$(info )

else
Expand Down Expand Up @@ -181,14 +178,14 @@ OBJ := $(CXXSRC:.cpp=.o)
DEP := $(OBJ:.o=.d)


LIBS += $(LIBHTS)
LIBS := $(LIBHTS) $(LIBS)

$(PROGRAM): $(OBJ)
$(CXX) $(OBJ) -o $(PROGRAM) $(LIBS)
$(CXX) -o $(PROGRAM) *.o $(LIBS)


-include $(DEP)
FLAGS=$(CPPFLAGS) $(CXXFLAGS)
FLAGS := $(CPPFLAGS) $(CXXFLAGS)
%.o: %.cpp
$(CXX) -c $(FLAGS) $*.cpp
$(CXX) -MM $(FLAGS) $*.cpp >$*.d
Expand Down

0 comments on commit 5fbfe7a

Please sign in to comment.