-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.mk
More file actions
68 lines (57 loc) · 2.24 KB
/
Copy pathmake.mk
File metadata and controls
68 lines (57 loc) · 2.24 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
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
65
66
67
68
###########################################################
###.....................by.:.dnetto.....................###
###########################################################
###########################################################
########...........System compatibility............########
###########################################################
ifeq ($(shell uname),Linux)
CFLAGS := $(LCFLAGS) $(CFLAGS)
PINC := $(LPINC) $(PINC)
CLIB := $(LCLIB) $(CLIB)
LIB := $(LLIB) $(LIB)
LARGS := $(LLARGS) $(LARGS)
NB_CORE := $(shell grep -c '^processor' /proc/cpuinfo)
endif
ifeq ($(shell uname),Darwin)
CFLAGS := $(MCFLAGS) $(CFLAGS)
PINC := $(MPINC) $(PINC)
CLIB := $(MCLIB) $(CLIB)
LIB := $(MLIB) $(LIB)
LARGS := $(MLARGS) $(LARGS)
NB_CORE := $(shell sysctl -n hw.ncpu)
endif
###########################################################
########...............check.updates...............########
###########################################################
#defaut off
#ifeq (UPDATE,yes)
#git pull
#endif
###########################################################
######## gen file.log ########
###########################################################
define generate_file
echo "$(1)" >$(2).log
endef
###########################################################
###....................some includes....................###
###########################################################
MMPATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))src
# some colors and warnings
include $(MMPATH)/ColorMaker.mk
include $(MMPATH)/AutoComplete.mk
include $(MMPATH)/VerboseMods.mk
include $(MMPATH)/DefautValues.mk
include $(MMPATH)/CreatFiles.mk
include $(MMPATH)/RemoveFiles.mk
include $(MMPATH)/MakeMakefile.mk
include $(MMPATH)/norme42.mk
include $(MMPATH)/OthersFunctions.mk
debug:
@echo "$(foreach dir, $(DIRBASE_C), $(D_SRC)/$(dir))"
#\n\nFILEBASE_H = $(FILEBASE_H) \n\nDIRBASE_H = $(DIRBASE_H)\n\nsrc = $(SRC)\n\nobj = $(OBJ)\n\nobd = $(OBD)\n\nnorm =$(NORM_C) || $(NORM_H)"
#"src = $(SRC)\n\nobj = $(OBJ)\n\nobd = $(OBD)\n\nnorm = $(NORM)"
.PHONY: all clean fclean re auteur libs
###########################################################
###.....................by.:.dnetto.....................###
###########################################################