]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - atc/Makefile
Fix merge conflicts
[bsdgames-darwin.git] / atc / Makefile
1 # $NetBSD: Makefile,v 1.30 2011/08/16 10:14:40 christos Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= atc
5 SRCS= extern.c graphics.c input.c list.c log.c \
6 main.c tunable.c update.c
7 MAN= atc.6
8 FILES=${GAMES:S@^@${.CURDIR}/games/@g}
9 FILESDIR=$(PREFIX)/share/games/atc
10 FILESMODE=644
11
12 all: $(PROG)
13
14 $(PROG): $(SRCS) grammar.y lex.l
15 yacc -d grammar.y -o grammar.c
16 lex lex.l
17 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) grammar.c lex.yy.c -lncursesw $(LIBFLA) -I$(ROOT)
18 $(STRIP) $(PROG)
19
20 install: $(PROG) $(MAN)
21 $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
22 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
23 mkdir -p $(DESTDIR)/$(PREFIX)/share/games
24 cp -r games $(DESTDIR)/$(PREFIX)/share/games/atc
25 chmod -R 644 $(DESTDIR)/$(PREFIX)/share/games/atc/*
26 mkdir -p $(DESTDIR)/$(LOCALSTATEDIR)/games/
27
28
29 clean:
30 rm -f $(CLEANFILES) $(PROG) grammar.c grammar.h lex.yy.c
31
32 .PHONY: all clean install