Skip to content

Commit 8f603c1

Browse files
committed
Makefile modifications to make, link, and clean properly.
1 parent cec58b8 commit 8f603c1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
LDLIBS=-lncurses
1+
CXXFLAGS += -Wall
2+
LDLIBS += -lncurses
3+
4+
.PHONY: all clean
5+
6+
all: braincurses
27

38
braincurses: windows/windows.o braincurses.o
4-
$(LINK.cc) $^ $(LDLIBS) -o $@
9+
$(LINK.cc) $^ ${LDLIBS} -o $@
510

611
clean:
7-
rm -f braincurses
8-
rm -f **/*.o
12+
@- $(RM) braincurses
13+
@- $(RM) *.o windows/*.o

0 commit comments

Comments
 (0)