-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.02 KB
/
Makefile
File metadata and controls
38 lines (28 loc) · 1.02 KB
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
###############################################################################
# Editable options #
###############################################################################
CC = clang
CFLAGS = -std=c11 -Wall -Wextra -Werror -Wpedantic -Wno-strict-prototypes
INCS = -I./inc -I./libmx/inc
LIBS = -L./libmx/ -lmx
BINARY = ush
CFILES = $(wildcard src/*.c) $(wildcard src/*/*.c) $(wildcard src/*/*/*.c) \
$(wildcard src/*/*/*/*.c) \
$(wildcard src/*/*/*/*/*.c) \
$(wildcard src/*/*/*/*/*/*.c)
OBJ_DIR = obj
###############################################################################
.PHONY: all clean uninstall reinstall
all: ${BINARY}
${BINARY}:
@make -sC libmx
@mkdir -p ${OBJ_DIR}
@${CC} ${CFLAGS} ${INCS} ${LIBS} ${CFILES} -o ${BINARY}
uninstall:
@rm -rf ${BINARY}
@make uninstall -sC libmx
clean:
@rm -rf ${OBJ_DIR}
@make clean -sC libmx
reinstall: uninstall all
###############################################################################