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

Commit b1d41cd

Browse files
authored
Merge pull request #1 from tessus/fix-makefile
Fix makefile
2 parents cb7a0f2 + e9d83e3 commit b1d41cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
CC=g++
77

88
# Added -std=c++11 because of auto_ptr to unique_ptr transition
9-
CFLAGS= -c -Wall -O2 -DNDEBUG -std=c++11
9+
CFLAGS= -Wall -O2 -DNDEBUG -std=c++11
1010

1111
LDFLAGS=
1212

@@ -20,10 +20,10 @@ EXECUTABLE=ansifilter
2020
all: $(SOURCES) $(EXECUTABLE)
2121

2222
$(EXECUTABLE): $(OBJECTS)
23-
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
23+
$(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJECTS) -o $@
2424

2525
.cpp.o:
26-
$(CC) $(CFLAGS) $< -o $@
26+
$(CC) -c $(CFLAGS) $(CXXFLAGS) $< -o $@
2727

2828
clean:
2929
@rm -f *.o

0 commit comments

Comments
 (0)