Skip to content
Snippets Groups Projects
Commit e5e0dba9 authored by Pavel Pisa's avatar Pavel Pisa
Browse files

Makefile: add CXXFLAGS and LDLIBS to the rules where they are usually referenced.


Signed-off-by: default avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent e8eb9813
No related branches found
No related tags found
No related merge requests found
......@@ -38,15 +38,15 @@ LDFLAGS += $(CXXFLAGS) $(CPPFLAGS)
endif
%.o:%.c
$(CC) $(CFLAGS) -c $<
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
%.o:%.cpp
$(CXX) $(CXXFLAGS) -c $<
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
all: $(TARGET_EXE)
$(TARGET_EXE): $(OBJECTS)
$(LINKER) $(LDFLAGS) -L. $^ -o $@
$(LINKER) $(LDFLAGS) -L. $^ -o $@ $(LDLIBS)
.PHONY : dep all run copy-executable debug
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment