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

59 lines
2.5 KiB
Makefile
Raw Normal View History

2019-03-20 10:16:33 -04:00
# -*- Makefile -*-
2020-09-12 06:38:45 -04:00
2021-01-05 19:38:00 -05:00
CFLAGS= -O3 -lncurses -Wno-unused-result
2020-09-12 06:38:45 -04:00
#-O3 --std=c99 -lcurses -DNO_MOUSE for BSD curses
2021-01-05 19:38:00 -05:00
#adding --std=c99 makes warnings in GNU, and the blame is upon glibc feature test macros. my code is
2020-05-18 14:59:29 -04:00
all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare
2020-06-20 12:26:54 -04:00
scorefiles:
2020-07-09 06:26:13 -04:00
touch /usr/games/pp_scores
touch /usr/games/jw_scores
touch /usr/games/mt_scores
touch /usr/games/mnch_scores
touch /usr/games/fsh_scores
chmod 666 /usr/games/pp_scores
chmod 666 /usr/games/jw_scores
chmod 666 /usr/games/mt_scores
chmod 666 /usr/games/mnch_scores
chmod 666 /usr/games/fsh_scores
2020-06-20 12:26:54 -04:00
2019-03-20 10:16:33 -04:00
jewels: jewels.c config.h
2020-09-12 06:38:45 -04:00
$(CC) jewels.c $(CFLAGS) -o ./jewels
2019-03-20 10:16:33 -04:00
sudoku: sudoku.c
2020-09-12 06:38:45 -04:00
$(CC) sudoku.c $(CFLAGS) -lm -o ./sudoku
2019-03-20 10:16:33 -04:00
mines: mines.c
2020-09-12 06:38:45 -04:00
$(CC) mines.c $(CFLAGS) -o ./mines
2019-03-20 10:16:33 -04:00
reversi: reversi.c
2020-09-12 06:38:45 -04:00
$(CC) reversi.c $(CFLAGS) -o ./reversi
2019-03-20 10:16:33 -04:00
checkers: checkers.c
2020-09-12 06:38:45 -04:00
$(CC) checkers.c $(CFLAGS) -o ./checkers
2019-03-20 10:16:33 -04:00
battleship: battleship.c
2020-09-12 06:38:45 -04:00
$(CC) battleship.c $(CFLAGS) -o ./battleship
2019-03-20 10:16:33 -04:00
rabbithole: rabbithole.c
2020-09-12 06:38:45 -04:00
$(CC) rabbithole.c $(CFLAGS) -o ./rabbithole
2019-03-20 10:16:33 -04:00
sos: sos.c
2020-09-12 06:38:45 -04:00
$(CC) sos.c $(CFLAGS) -o ./sos
2019-03-20 10:16:33 -04:00
pipes: pipes.c config.h
2020-09-12 06:38:45 -04:00
$(CC) pipes.c $(CFLAGS) -o ./pipes
2019-05-13 09:58:19 -04:00
fifteen: fifteen.c
2020-09-12 06:38:45 -04:00
$(CC) fifteen.c $(CFLAGS) -o ./fifteen
2019-05-13 09:58:19 -04:00
memoblocks: memoblocks.c
2020-09-12 06:38:45 -04:00
$(CC) memoblocks.c $(CFLAGS) -o ./memoblocks
2020-05-18 14:59:29 -04:00
fisher: fisher.c config.h
2020-09-12 06:38:45 -04:00
$(CC) fisher.c $(CFLAGS) -o ./fisher
2020-05-18 14:59:29 -04:00
muncher: muncher.c config.h
2020-09-12 06:38:45 -04:00
$(CC) muncher.c $(CFLAGS) -o ./muncher
2020-05-18 14:59:29 -04:00
miketron: miketron.c config.h
2020-09-12 06:38:45 -04:00
$(CC) miketron.c $(CFLAGS) -o ./miketron
2020-05-18 14:59:29 -04:00
redsquare: redsquare.c
2020-09-12 06:38:45 -04:00
$(CC) redsquare.c $(CFLAGS) -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)
2020-06-20 12:26:54 -04:00
install: scorefiles jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare
2020-05-18 14:59:29 -04:00
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