1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2024-12-04 14:46:22 -05:00
nbsdgames/sources/Makefile

44 lines
2.0 KiB
Makefile
Raw Normal View History

2019-03-20 10:16:33 -04:00
# -*- Makefile -*-
2020-05-18 14:59:29 -04:00
all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare
2019-03-20 10:16:33 -04:00
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
2019-05-13 09:58:19 -04:00
fifteen: fifteen.c
$(CC) fifteen.c -lncurses -o ./fifteen
memoblocks: memoblocks.c
$(CC) memoblocks.c -lncurses -o ./memoblocks
2020-05-18 14:59:29 -04:00
fisher: fisher.c config.h
$(CC) fisher.c -lncurses -o ./fisher
muncher: muncher.c config.h
$(CC) muncher.c -lncurses -o ./muncher
miketron: miketron.c config.h
$(CC) miketron.c -lncurses -o ./miketron
redsquare: redsquare.c
$(CC) redsquare.c -lncurses -o ./redsquare
2019-03-20 10:16:33 -04:00
clean:
2020-05-18 14:59:29 -04:00
rm ./jewels ./sudoku ./checkers ./mines ./reversi ./battleship ./rabbithole ./sos ./pipes ./fifteen ./memoblocks ./fisher ./muncher ./miketron ./redsquare
2019-03-20 10:16:33 -04:00
uninstall:
2020-05-18 14:59:29 -04:00
rm $(PREFIX)/jewels $(PREFIX)/sudoku $(PREFIX)/checkers $(PREFIX)/mines $(PREFIX)/reversi $(PREFIX)/battleship $(PREFIX)/rabbithole $(PREFIX)/sos $(PREFIX)/pipes $(PREFIX)/fifteen $(PREFIX)/memoblocks $(PREFIX)/fisher $(PREFIX)/muncher $(PREFIX)/miketron $(PREFIX)/redsquare
2019-03-20 10:16:33 -04:00
copy_sources:
2020-05-18 14:59:29 -04:00
cp Makefile config.h jewels.c sudoku.c mines.c reversi.c checkers.c battleship.c rabbithole.c sos.c pipes.c fifteen.c memoblocks.c fisher.c muncher.c miketron.c redsquare.c $(PREFIX)
install: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare
cp jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare $(PREFIX)
2019-03-20 10:16:33 -04:00