6 MACHINE
=$(shell uname
-m
)
8 OUT
=$(DIROUT
)/$(MACHINE
)/$(FILEOUT
)
15 SRC_ALL
=$(SRC_DIR
)*.
cpp $(SRC_DIR
)*.hpp
$(SRC_DIR
)*.h
17 ENGINE_ALL
=$(ENGINE_DIR
)*.
cpp $(ENGINE_DIR
)*.hpp
18 ENGINE
=$(ENGINE_DIR
)*.
cpp
20 ENGINE_OUT
=$(ENGINE_DIR
)libseniengine.a
22 .PHONY
: all clean engine seni clean-all clean-engine clean-seni clean-build stats
28 $(OUT
): $(DIROUT
)/$(MACHINE
) $(SRC
) $(ENGINE_OUT
)
30 @echo
-e
"\t\e[1;36mMaking SENI\e[0m"
31 @cd
$(SRC_DIR
) && make seni
35 mkdir
-p
$(DIROUT
)/$(MACHINE
)
39 $(ENGINE_OUT
): $(ENGINE
)
41 @echo
-e
"\t\e[1;36mMaking Engine\e[0m"
42 @cd
$(ENGINE_DIR
) && make engine
46 clean-all
: clean-engine clean-seni clean-build
54 cd
$(ENGINE_DIR
) && make
clean
57 cd
$(SRC_DIR
) && make
clean
59 stats
: $(ENGINE_OUT
) $(ENGINE_ALL
) $(OUT
) $(SRC_ALL
)
60 @echo
-ne
"\e[1;33mLineas Engine\n\t\e[1;34m"
61 @wc
-l
$(ENGINE_ALL
) | grep
-w total
63 @echo
-ne
"\e[1;33mBytes Engine\n\t\e[1;34m"
66 @echo
-ne
"\e[1;33mLineas SENI\n\t\e[1;34m"
67 @wc
-l
$(SRC_ALL
) | grep
-w total
69 @echo
-ne
"\e[1;33mBytes SENI\n\t\e[1;34m"