📝 Created a default custom Makefile

This commit is contained in:
z3rOR0ne 2022-09-03 15:06:52 -07:00
parent 7c17325399
commit 2e34b96d8a

19
Makefile.txt Normal file
View 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