2019-03-20 10:16:33 -04:00
|
|
|
# -*- Makefile -*-
|
|
|
|
|
|
|
|
all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes
|
|
|
|
|
|
|
|
jewels: jewels.c config.h
|
|
|
|
$(CC) jewels.c -lncurses -o ./jewels
|
|
|
|
sudoku: sudoku.c
|
|
|
|
$(CC) sudoku.c -lncurses -lm -o ./sudoku
|
|
|
|
mines: mines.c
|
|
|
|
$(CC) mines.c -lncurses -o ./mines
|
|
|
|
reversi: reversi.c
|
|
|
|
$(CC) reversi.c -lncurses -o ./reversi
|
|
|
|
checkers: checkers.c
|
|
|
|
$(CC) checkers.c -lncurses -o ./checkers
|
|
|
|
battleship: battleship.c
|
|
|
|
$(CC) battleship.c -lncurses -o ./battleship
|
|
|
|
rabbithole: rabbithole.c
|
|
|
|
$(CC) rabbithole.c -lncurses -o ./rabbithole
|
|
|
|
sos: sos.c
|
|
|
|
$(CC) sos.c -lncurses -o ./sos
|
|
|
|
pipes: pipes.c config.h
|
|
|
|
$(CC) pipes.c -lncurses -o ./pipes
|
|
|
|
clean:
|
|
|
|
rm ./jewels ./sudoku ./checkers ./mines ./reversi ./battleship ./rabbithole ./sos ./pipes
|
|
|
|
uninstall:
|
|
|
|
rm $(PREFIX)/jewels $(PREFIX)/sudoku $(PREFIX)/checkers $(PREFIX)/mines $(PREFIX)/reversi $(PREFIX)/battleship $(PREFIX)/rabbithole $(PREFIX)/sos $(PREFIX)/pipes
|
|
|
|
copy_sources:
|
|
|
|
cp Makefile config.h jewels.c sudoku.c mines.c reversi.c checkers.c battleship.c rabbithole.c sos.c pipes.c $(PREFIX)
|
2019-04-02 18:15:06 -04:00
|
|
|
install: jewels sudoku mines reversi checkers battleship rabbithole sos pipes
|
2019-03-20 10:16:33 -04:00
|
|
|
cp jewels sudoku mines reversi checkers battleship rabbithole sos pipes $(PREFIX)
|
|
|
|
|