File: 01_makefile.diff

package info (click to toggle)
scottfree 1.14-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: ansic: 8,210; makefile: 19
file content (23 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Build scottfree without termcap
Author: Clint Adams <schizo@debian.org>

--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,14 @@
 CC	=	gcc
 #
 #
-all	:	ScottCurses
+all	:	scottfree
 
 ScottCurses.o:	ScottCurses.c Scott.h
 
-ScottCurses:	ScottCurses.o
-	$(CC) ScottCurses.o -o ScottCurses -lcurses -ltermcap
+scottfree:	ScottCurses.o
+	$(CC) $(LDFLAGS) ScottCurses.o -o scottfree -lcurses
 
+install:
+	mkdir -p $(DESTDIR)/usr/games
+	install -m 755 scottfree $(DESTDIR)/usr/games