Skip to content

Commit

Permalink
Simplify Makefile.
Browse files Browse the repository at this point in the history
Improvements made from looking at gentoo bug reports. https://bugs.gentoo.org/show_bug.cgi?id=247420
  • Loading branch information
bderrly committed Jun 19, 2015
1 parent ab0369f commit 76af0c7
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
CC=g++
CFLAGS=-Wall
CURSES_LIBS=-lncurses
LDLIBS=-lncurses

ncurses: windows/windows.o braincurses.o
${CC} ${CFLAGS} windows/windows.o braincurses.o ${CURSES_LIBS} -o braincurses

windows.o: windows.cpp
${CC} ${CFLAGS} -c windows/windows.cpp

braincurses.o: braincurses.cpp
${CC} ${CFLAGS} -c braincurses.cpp

install:
install -o root -g root braincurses /usr/local/bin/

uninstall:
rm /usr/local/bin/braincurses
braincurses: windows/windows.o braincurses.o
$(LINK.cc) $^ $(LDLIBS) -o $@

clean:
rm -f braincurses
rm -f *.o
rm -f curses/*.o
rm -f **/*.o

0 comments on commit 76af0c7

Please sign in to comment.