💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Tetris › files › 2b63d9ae0d56d9640a3b2426af5… captured on 2023-12-28 at 15:47:58. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-09-08)

-=-=-=-=-=-=-

Go Back

0 SHELL = /bin/sh

1

2 PREFIX = /usr

3 CFLAGS = -ansi -Wall -Wextra -std=c89 -pedantic -O2

4 CC = cc

5 LIBS = -s -lm

6

7 # FreeBSD

8 #PREFIX = /usr/local

9 #LIBSPATH = -L/usr/local/lib

10 #INCLUDES = -I/usr/local/include

11

12 # OpenBSD

13 #PREFIX = /usr/local

14 #LIBSPATH = -L/usr/X11R6/lib

15 #INCLUDES = -I/usr/X11R6/include

16

17 x11: src/*

18 ${CC} ${CFLAGS} src/tetris.c src/x11_backend.c src/util.c \

19 ${INCLUDES} ${LIBSPATH} \

20 -o tetris_$@ ${LIBS} -lX11 -DX11

21

22 term: src/*

23 ${CC} ${CFLAGS} src/tetris.c src/term_backend.c src/util.c \

24 ${INCLUDES} ${LIBSPATH} \

25 -o tetris_$@ ${LIBS} -ltermbox -DTERMINAL

26

27 install:

28 cp tetris_* ${PREFIX}/bin/

29 chmod 755 ${PREFIX}/bin/tetris_*

30

31 uninstall:

32 rm ${PREFIX}/bin/tetris_*

33

34 clean:

35 rm -f tetris_*

36