blob: 9bd96d5a8f7851b965f855b4468d80e835dbe3d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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}
|