-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMakefile
64 lines (53 loc) · 1.73 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CFLAGS += -g3
LIBS = -lpthread
# Be super strict about everything
CFLAGS += -std=c11 -Wall -Wextra -pedantic -O2
CPPFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
# Automatically sort out header dependencies
CPPFLAGS += -MD -MF $(patsubst src/%.o,.%.mk,$@) -MP
-include $(patsubst %.o,.%.mk,$(obj))
CPPFLAGS += -MD -MF $(patsubst src/execution_functions/%.o,.%.mk,$@) -MP
-include $(patsubst %.o,.%.mk,$(obj))
CPPFLAGS += -MD -MF $(patsubst src/structures/%.o,.%.mk,$@) -MP
-include $(patsubst %.o,.%.mk,$(obj))
LDFLAGS += -rdynamic
objs = \
src/structures/array.o \
src/structures/huo_ast.o \
src/structures/string.o \
src/structures/value.o \
src/structures/hash_table.o \
src/structures/token.o \
src/constants.o \
src/base_util.o \
src/core_functions.o \
src/apply_core_function.o \
src/execution_functions/parallel_execution.o\
src/execution_functions/for_each.o\
src/execution_functions/for_loop.o\
src/execution_functions/map_array.o\
src/execution_functions/reduce.o\
src/execution_functions/read_file.o\
src/execution_functions/let_binding.o\
src/execution_functions/reduce_ast.o\
src/execution_functions/if_block.o\
src/execution_functions/switch.o\
src/execution_functions/while_loop.o\
src/execution_functions/evaluate.o\
src/execution_functions/read_line.o\
src/apply_execution_function.o\
src/apply_single_value_func.o\
src/tokenizer.o \
src/process_defs.o \
src/store_defs.o \
src/parser.o \
src/execute.o \
src/config.o \
src/path_utils.o \
src/huo.o
all: huo
huo: $(objs)
$(CC) $(LDFLAGS) -o huo $(objs) $(LIBS)
clean: ; rm -f -- ./src/*.mk ./src/*.o & rm -f ./src/execution_functions/*.o & rm -f ./src/structures/*.o & rm -f ./.*.mk
.PHONY: all clean
.DELETE_ON_ERROR: