Added
Link Here
|
1 |
--- Makefile.orig 2021-04-19 07:30:54 UTC |
2 |
+++ Makefile |
3 |
@@ -1,29 +1,14 @@ |
4 |
# -*- Makefile -*- |
5 |
-ifndef $(CFLAGS) |
6 |
- CFLAGS= -O3 -lncurses -Wno-unused-result |
7 |
- #-O3 --std=c99 -lcurses -DNO_MOUSE for NetBSD curses |
8 |
- #adding --std=c99 makes warnings in GNU, and the blame is upon glibc feature test macros. my code is correct. |
9 |
-endif |
10 |
-ifndef $(GAMES_DIR) |
11 |
- GAMES_DIR=/usr/games |
12 |
-endif |
13 |
-ifndef $(SCORES_DIR) |
14 |
- SCORES_DIR=/usr/games |
15 |
-endif |
16 |
+CFLAGS += $(LDFLAGS) $(LDLIBS) |
17 |
all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel |
18 |
scorefiles: |
19 |
- touch $(SCORES_DIR)/pp_scores |
20 |
- touch $(SCORES_DIR)/jw_scores |
21 |
- touch $(SCORES_DIR)/mt_scores |
22 |
- touch $(SCORES_DIR)/mnch_scores |
23 |
- touch $(SCORES_DIR)/fsh_scores |
24 |
- touch $(SCORES_DIR)/drt_scores |
25 |
- chmod 666 $(SCORES_DIR)/pp_scores |
26 |
- chmod 666 $(SCORES_DIR)/jw_scores |
27 |
- chmod 666 $(SCORES_DIR)/mt_scores |
28 |
- chmod 666 $(SCORES_DIR)/mnch_scores |
29 |
- chmod 666 $(SCORES_DIR)/fsh_scores |
30 |
- chmod 666 $(SCORES_DIR)/drt_scores |
31 |
+ mkdir -p $(SCORES_DIR) |
32 |
+ touch $(SCORES_DIR)/pp_scores.sample |
33 |
+ touch $(SCORES_DIR)/jw_scores.sample |
34 |
+ touch $(SCORES_DIR)/mt_scores.sample |
35 |
+ touch $(SCORES_DIR)/mnch_scores.sample |
36 |
+ touch $(SCORES_DIR)/fsh_scores.sample |
37 |
+ touch $(SCORES_DIR)/drt_scores.sample |
38 |
|
39 |
jewels: jewels.c config.h |
40 |
$(CC) jewels.c $(CFLAGS) -o ./jewels |