diff options
author | jozan <jozan@noemail.net> | 2020-11-02 19:51:06 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-02 19:51:06 +0000 |
commit | 11bac28c2ad21009cf5170e5fbc09a2578dbbdd2 (patch) | |
tree | 070508cb1ee26d3ddffb131018cd3001adb896a3 /Makefile | |
parent | initial empty check-in (diff) | |
download | unixize-11bac28c2ad21009cf5170e5fbc09a2578dbbdd2.tar.gz unixize-11bac28c2ad21009cf5170e5fbc09a2578dbbdd2.tar.bz2 unixize-11bac28c2ad21009cf5170e5fbc09a2578dbbdd2.tar.xz unixize-11bac28c2ad21009cf5170e5fbc09a2578dbbdd2.tar.zst unixize-11bac28c2ad21009cf5170e5fbc09a2578dbbdd2.zip |
First commit
FossilOrigin-Name: 1962365689fbebb54f6d6ead6490c2c8e73682b7ea7e65ca49d94b619b191b7f
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9bd96d5 --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +################################################################################ +#* ===== ===============*# +#* File : Makefile ====== ================*# +#* Author : Joe ====== ================*# +#* Date : 2020-11-02 ====== ==== ==== ==*# +#* Info : GNU Makefile ====== === == = =*# +#* ====== === = == =*# +#* = === === = == ====*# +#* = === === = == = =*# +#* == ===== ==== ==*# +################################################################################ + +default: msan + +SHELL := /bin/sh + +DESTDIR = /usr/local +SRCS_DIR = src/ +OBJS_DIR = obj/ + +CC = cc +CFLAGS = -std=c89 +CFLAGS += -Wall +CFLAGS += -Wextra +CFLAGS += -Werror +CFLAGS += -pedantic + +RM = rm -f +MKDIR = mkdir -p + +SRCS_NAME = c_unixize + +SRCS = $(addprefix ${SRCS_DIR}, $(addsuffix .c, ${SRCS_NAME})) +INCS = $(addprefix ${SRCS_DIR}, $(addsuffix .h, ${SRCS_NAME})) +OBJS = $(patsubst ${SRCS_DIR}%.c, ${OBJS_DIR}%.c.o, ${SRCS}) + +TARGET = unixize + +clean: + ${RM} ${OBJS_DIR} + ${RM} ${TARGET} |