📝 Created a default custom Makefile
This commit is contained in:
parent
7c17325399
commit
2e34b96d8a
1 changed files with 19 additions and 0 deletions
19
Makefile.txt
Normal file
19
Makefile.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
SHELL := bash
|
||||
.ONESHELL:
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
.DELETE_ON_ERROR:
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
ifeq ($(origin .RECIPEPREFIX), undefined)
|
||||
(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
|
||||
endif
|
||||
.RECIPEPREFIX = >
|
||||
|
||||
CC=cc
|
||||
CFLAGS=-Wall -Werror -Wextra
|
||||
|
||||
install:
|
||||
> $(CC) $(CFLAGS) -o #executable-name #cfiles
|
||||
clean:
|
||||
> rm -rf #executable-name
|
||||
Loading…
Add table
Add a link
Reference in a new issue