Index

ncurses-minesweeper / e64ff2f

Terminal game of Minesweeper, implemented in C with ncurses.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
307 Sep 2020 19:42e64ff2fCreate Makefile and begin base programJosh Stockin1360G

Blob @ ncurses-minesweeper / Makefile

text/plain749 bytesdownload raw
1# Preamble >> Make config
2SHELL := bash
3.ONESHELL:
4.SHELLFLAGS := -eu -o pipefail -c
5.DELETE_ON_ERROR:
6MAKEFLAGS += --warn-undefined-variables
7MAKEFLAGS += --no-builtin-rules
8
9ifeq ($(origin .RECIPEPREFIX), undefined)
10 $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
11endif
12.RECIPEPREFIX = >
13
14all: bin/main
15
16
17# Compiler settings
18CC := gcc -std=c11
19CFLAGS := -O3
20CWARNINGS := -Werror -Wall -Wextra -pedantic
21CINCLUDES := -Isrc/
22CLIBS := -lncurses
23CLINT := --syntax-only
24
25
26# File dependencies
27bin/main.o: src/main.c
28> @echo Compiling $@ from $<
29> $(CC) -o $@ -c $(CFLAGS) $(CWARNINGS) $< $(CINCLUDES)
30
31
32# Binary dependencies
33bin/main: bin/main.o
34> @echo Compiling $@ from $^
35> $(CC) -o $@ $^ $(CLIBS)
36> @echo Done!
37