blob: 0dec93c2613e68873b3796287389b2c54742880c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
$NetBSD: patch-aa,v 1.1.1.1 1999/08/14 06:59:42 fredb Exp $
--- Makefile.orig Fri Oct 17 13:11:10 1997
+++ Makefile Fri Aug 13 15:52:29 1999
@@ -1,7 +1,6 @@
-
# Define your c compiler. I recommend gcc if you've got it.
-#CC = cc
-CC = gcc
+CC = cc
+#CC = gcc
# Define your optimization flags. Most compilers understand -O and -O2,
# Debugging (don't use)
@@ -43,21 +42,21 @@
# have that option.
#
#DEFS = -DUSE_GETOPT_H -DCOLOR_SUPPORT -DEMACS_EDITING
-DEFS =
+DEFS = -DUSE_UNISTD_H -DCOLOR_SUPPORT -DEMACS_EDITING -DUSE_NCURSES_H
# This should point to the location of your curses or ncurses include file
# if it's in a non-standard place.
#INCL = -I/usr/local/include
#INCL = -I/5usr/include
-INCL =
+INCL = -I${PREFIX}/include
# This should define the location and name of whatever curses library you're
# linking with.
#LIB = -L/usr/local/lib
#CURSES = -lncurses
#LIB = -L/5usr/lib
-LIB =
-CURSES = -lcurses
+LIB = -L${PREFIX}/lib -Wl,-R${PREFIX}/lib
+CURSES = -lncurses
# Nothing under this line should need to be changed.
@@ -71,3 +70,7 @@
frotz: $(OBJECTS)
$(CC) -o frotz $(OBJECTS) $(LIB) $(CURSES)
+all: frotz
+
+install:
+ ${INSTALL} -c frotz ${PREFIX}/bin
|