blob: f78dd0da646d3e804f2d8d172dbcbf7e3edbbdd7 (
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
|
$NetBSD: patch-aa,v 1.1.1.1 1999/07/01 08:27:31 garbled Exp $
--- Makefile.orig Thu Jul 1 00:07:30 1999
+++ Makefile Thu Jul 1 01:07:42 1999
@@ -1,8 +1,8 @@
-CFLAGS = -Wall
+CFLAGS = -Wall -I${LOCALBASE}/include
CC = gcc
HEADERS = message.h dopewars.h serverside.h clientside.h AIPlayer.h
OBJS = message.o dopewars.o serverside.o clientside.o AIPlayer.o
-LIBS = -lncurses
+LIBS = $(LDFLAGS) -lncurses
dopewars : $(OBJS)
$(CC) $(CFLAGS) -o dopewars $(OBJS) $(LIBS)
@@ -23,10 +23,10 @@
$(CC) $(CFLAGS) -c AIPlayer.c
install :
- install -o root -g games -m 2755 dopewars /usr/bin/dopewars
- touch /var/lib/games/dopewars.sco
- chown root.games /var/lib/games/dopewars.sco
- chmod 0660 /var/lib/games/dopewars.sco
+ install -o root -g games -m 2755 dopewars ${PREFIX}/bin/dopewars
+ touch /var/games/dopewars.sco
+ chown root.games /var/games/dopewars.sco
+ chmod 0660 /var/games/dopewars.sco
clean :
rm -f $(OBJS)
|