2000-05-01 20:25:40 +00:00
|
|
|
--- Makefile.orig Mon May 1 18:11:58 2000
|
|
|
|
+++ Makefile Mon May 1 18:11:59 2000
|
|
|
|
@@ -9,40 +9,44 @@
|
|
|
|
# Name of level editor executable
|
|
|
|
EDITOR = makelev
|
|
|
|
# Directory where games binaries are stored
|
|
|
|
-BIN = /usr/public/${HOSTTYPE}/games
|
|
|
|
+BIN = ${PREFIX}/bin
|
|
|
|
# Directory where the library for this game will be stored
|
|
|
|
-LIB = /usr/public/sun3/games/lib/${GAME}
|
|
|
|
+LIB = ${PREFIX}/lib/${GAME}
|
|
|
|
# Directory where manual pages are kept
|
|
|
|
-MANEXT = p
|
|
|
|
-MAN = /usr/public/man/man${MANEXT}
|
|
|
|
+MANEXT = 6
|
|
|
|
+MAN = ${PREFIX}/man/man${MANEXT}
|
|
|
|
# Font used to display score
|
|
|
|
SCOREFONT = -adobe-times-bold-r-normal--18-180-75-75-p-99-iso8859-1
|
|
|
|
# Height of SCOREFONT
|
|
|
|
SCORESIZE = 18
|
|
|
|
|
|
|
|
# Common compilers
|
|
|
|
-#CC = cc
|
|
|
|
-CC = gcc
|
|
|
|
+CC = cc
|
|
|
|
+#CC = gcc
|
|
|
|
|
|
|
|
# Some common choices for CFLAGS.
|
|
|
|
#CFLAGS = -O2
|
|
|
|
#CFLAGS = -O
|
|
|
|
-CFLAGS = -O -W -Wreturn-type -Wunused -g -finline-functions
|
|
|
|
+CFLAGS += -W -Wreturn-type -Wunused -finline-functions -I${X11BASE}/include
|
|
|
|
#CFLAGS = -g
|
|
|
|
-LDFLAGS = -g
|
|
|
|
+LDFLAGS = -L ${X11BASE}/lib
|
|
|
|
|
2000-05-01 02:06:57 +00:00
|
|
|
all: ${GAME} ${EDITOR}
|
|
|
|
|
|
|
|
install: all
|
2000-05-01 20:25:40 +00:00
|
|
|
-mkdir ${LIB}
|
2000-05-01 02:06:57 +00:00
|
|
|
cp ${GAME} ${EDITOR} ${BIN}
|
2000-05-01 20:25:40 +00:00
|
|
|
+ chown root.games ${BIN}/${GAME}
|
|
|
|
+ chmod g+s ${BIN}/${GAME}
|
2000-05-01 02:06:57 +00:00
|
|
|
# The next line sets up the level files so that anyone can edit all of
|
|
|
|
# the levels. Remove this line to have better security.
|
|
|
|
- chmod 4755 ${BIN}/${EDITOR}
|
2000-05-01 20:25:40 +00:00
|
|
|
+# chmod 4755 ${BIN}/${EDITOR}
|
2000-05-01 02:06:57 +00:00
|
|
|
touch ${LIB}/scores
|
2000-05-01 20:25:40 +00:00
|
|
|
+ chown root.games ${LIB}/scores
|
|
|
|
+ chmod g+w ${LIB}/scores
|
2000-05-01 02:06:57 +00:00
|
|
|
# Allow anyone to modify the high score file. An alternative is to
|
|
|
|
# change the mode bits of ${GAME} to be 4755.
|
2000-05-01 20:25:40 +00:00
|
|
|
- chmod 666 ${LIB}/scores
|
|
|
|
+# chmod 666 ${LIB}/scores
|
2000-05-01 02:06:57 +00:00
|
|
|
cp goldlev* default ${LIB}
|
|
|
|
cp golddig.p ${MAN}/golddig.${MANEXT}
|
|
|
|
|