2
AM_CFLAGS = -Wall -W -pedantic -std=c99
4
HIGHFILE = typespeed.score
5
WORDDIR = $(datadir)/@PACKAGE@/words
6
RULEDIR = $(datadir)/@PACKAGE@/rules
8
bin_PROGRAMS = typespeed
9
noinst_PROGRAMS = convert
11
highscore_DATA = typespeed.score
13
convert_SOURCES = convert.c
15
typespeed_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DTVERSION=\"v$(VERSION)\" \
16
-DCONFIGFILE=\"$(sysconfdir)/typespeedrc\" \
17
-DHIGHFILE=\"$(highscoredir)/$(HIGHFILE)\" \
18
-DWORDDIR=\"$(WORDDIR)\" -DRULEDIR=\"$(RULEDIR)\"
19
typespeed_LDADD = @LIBINTL@
20
typespeed_SOURCES = file.c gettext.h menu.c misc.c network.c pathnames.h \
21
typespeed.c typespeed.h
24
@touch typespeed.score
27
-chgrp games $(DESTDIR)$(highscoredir)/$(HIGHFILE) && \
28
chmod g+w $(DESTDIR)$(highscoredir)/$(HIGHFILE) && \
29
chmod o-rwx $(DESTDIR)$(highscoredir)/$(HIGHFILE)
32
-chgrp games $(DESTDIR)$(bindir)/typespeed && \
33
chmod g+s $(DESTDIR)$(bindir)/typespeed