Commit | Line | Data |
---|---|---|
e3325aaf KM |
1 | # |
2 | # Copyright (c) 1980 Regents of the University of California. | |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
c18faa9a | 6 | # @(#)Makefile 5.4 (Berkeley) %G% |
e3325aaf | 7 | # |
79c6f356 | 8 | OBJS= main.obj machdep.o |
e9ba7ed0 | 9 | |
8dc88449 KM |
10 | GAMESDIR= $(DESTDIR)/usr/games |
11 | SCOREFILE= $(DESTDIR)/usr/games/lib/rogue_roll | |
e9ba7ed0 KA |
12 | DEFS= -DSCOREFILE='"$(SCOREFILE)"' |
13 | CFLAGS= -O $(DEFS) | |
e9ba7ed0 KA |
14 | |
15 | NROFF= nroff | |
16 | TROFF= ditroff | |
17 | ||
18 | rogue: $(OBJS) | |
19 | $(CC) $(CFLAGS) -o rogue $(OBJS) -lcurses -ltermlib | |
20 | ||
e9ba7ed0 | 21 | install: rogue |
8dc88449 | 22 | install -s -o daemon -m 4711 rogue $(GAMESDIR) |
aa443c78 | 23 | install -c -o daemon -m 644 /dev/null $(SCOREFILE) |
79c6f356 KM |
24 | |
25 | clean: | |
26 | rm -f rogue machdep.o | |
c18faa9a KB |
27 | |
28 | depend: |