Skip to content
This repository has been archived by the owner on Jul 21, 2018. It is now read-only.

Commit

Permalink
add CXXFLAGS and EXTRA_LDFLAGS
Browse files Browse the repository at this point in the history
external build systems might want to add additional flags, but
CXXFLAGS is missing. EXTRA_LDFLAGS is also often used to add extra LDFLAGS.
  • Loading branch information
tessus committed Apr 14, 2017
1 parent c5d1abb commit e9d83e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ EXECUTABLE=ansifilter
all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
$(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
$(CC) -c $(CFLAGS) $< -o $@
$(CC) -c $(CFLAGS) $(CXXFLAGS) $< -o $@

clean:
@rm -f *.o
Expand Down

0 comments on commit e9d83e3

Please sign in to comment.