Skip to content

Commit

Permalink
Makefile modifications to make, link, and clean properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
bderrly committed Jun 19, 2015
1 parent cec58b8 commit 8f603c1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
LDLIBS=-lncurses
CXXFLAGS += -Wall
LDLIBS += -lncurses

.PHONY: all clean

all: braincurses

braincurses: windows/windows.o braincurses.o
$(LINK.cc) $^ $(LDLIBS) -o $@
$(LINK.cc) $^ ${LDLIBS} -o $@

clean:
rm -f braincurses
rm -f **/*.o
@- $(RM) braincurses
@- $(RM) *.o windows/*.o

0 comments on commit 8f603c1

Please sign in to comment.