diff --git a/Makefile b/Makefile index d30f06f..d77c81d 100644 --- a/Makefile +++ b/Makefile @@ -5,26 +5,26 @@ CFLAGS+= -O3 -lncurses -Wno-unused-result #adding --std=c99 makes warnings in GNU, and the blame is upon glibc feature test macros. my code is correct. GAMES_DIR?=/usr/games -SCORES_DIR?=/usr/games +SCORES_DIR?=/var/games all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel scorefiles: - touch $(SCORES_DIR)/pp_scores - touch $(SCORES_DIR)/jw_scores - touch $(SCORES_DIR)/mt_scores - touch $(SCORES_DIR)/mnch_scores - touch $(SCORES_DIR)/fsh_scores - touch $(SCORES_DIR)/drt_scores - chmod 666 $(SCORES_DIR)/pp_scores - chmod 666 $(SCORES_DIR)/jw_scores - chmod 666 $(SCORES_DIR)/mt_scores - chmod 666 $(SCORES_DIR)/mnch_scores - chmod 666 $(SCORES_DIR)/fsh_scores - chmod 666 $(SCORES_DIR)/drt_scores + touch $(SCORES_DIR)/pipes_scores + touch $(SCORES_DIR)/jewels_scores + touch $(SCORES_DIR)/miketron_scores + touch $(SCORES_DIR)/muncher_scores + touch $(SCORES_DIR)/fisher_scores + touch $(SCORES_DIR)/darrt_scores + chmod 666 $(SCORES_DIR)/pipes_scores + chmod 666 $(SCORES_DIR)/jewels_scores + chmod 666 $(SCORES_DIR)/miketron_scores + chmod 666 $(SCORES_DIR)/muncher_scores + chmod 666 $(SCORES_DIR)/fisher_scores + chmod 666 $(SCORES_DIR)/darrt_scores -jewels: jewels.c config.h +jewels: jewels.c config.h common.h $(CC) jewels.c $(CFLAGS) -o ./jewels -sudoku: sudoku.c config.h +sudoku: sudoku.c config.h $(CC) sudoku.c $(CFLAGS) -lm -o ./sudoku mines: mines.c config.h $(CC) mines.c $(CFLAGS) -o ./mines @@ -44,15 +44,15 @@ fifteen: fifteen.c config.h $(CC) fifteen.c $(CFLAGS) -o ./fifteen memoblocks: memoblocks.c $(CC) memoblocks.c $(CFLAGS) -o ./memoblocks -fisher: fisher.c config.h +fisher: fisher.c config.h common.h $(CC) fisher.c $(CFLAGS) -o ./fisher -muncher: muncher.c config.h +muncher: muncher.c config.h common.h $(CC) muncher.c $(CFLAGS) -o ./muncher -miketron: miketron.c config.h +miketron: miketron.c config.h common.h $(CC) miketron.c $(CFLAGS) -o ./miketron redsquare: redsquare.c config.h $(CC) redsquare.c $(CFLAGS) -o ./redsquare -darrt: darrt.c config.h +darrt: darrt.c config.h common.h $(CC) darrt.c $(CFLAGS) -lm -o ./darrt snakeduel: snakeduel.c config.h