forked from troglobit/tetris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 851 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (27 loc) · 851 Bytes
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
30
31
32
33
34
# Micro Tetris Makefile
# Remember to update the VERSION before a new release.
# -- " -- to set the DESTDIR env. variable when installing.
#
# Set CC and CFGLAGS in your local environment for a suitable
# compiler (tcc?) and CFLAGS (-Os -W -Wall -Werror).
VERSION = 1.3.0
CFG_OPTS ?= \
-DENABLE_SCORE \
-DENABLE_PREVIEW \
-DENABLE_HIGH_SCORE \
-DENABLE_UNICODE \
# -DENABLE_UNICODE_BOARD \
#CC ?= @gcc
CPPFLAGS += $(CFG_OPTS)
CFLAGS ?= -Wall -Werror
all: tetris
tetris.o: Makefile tetris.c tetris.h
clean:
-@$(RM) tetris tetris.o *~
distclean: clean
install: all
@install -D -m 0755 tetris $(DESTDIR)/bin/tetris
@touch /tmp/tetris.scores
@install -D -m 0664 -g games /tmp/tetris.scores $(DESTDIR)/var/games/tetris.scores
dist:
@git archive --format=tar --prefix=tetris-$(VERSION)/ $(VERSION) | bzip2 >../tetris-$(VERSION).tar.bz2