I am new to make files and I have some make files. One of them has these statements, which I tried to understand, but I canβt.
What does this make file do?
ifeq ($(DEBUG), true)
CFLAGS+=-DDEBUG -g
endif
ifeq ($(DEBUG), gdb)
CFLAGS+=-g
endif
ifeq ($(PROFILING), true)
CFLAGS+=-p
endif
ifeq ($(DEBUG_NAMES), true)
CFLAGS+=-DDEBUG_NAMES
endif
ifeq ($(ARCH), unix)
CFLAGS+=-DUNIX
endif
ifeq ($(HEAP), malloc)
CFLAGS+=-DHEAP_MALLOC
endif
ifeq ($(STACK), malloc)
CFLAGS+=-DSTACK_MALLOC
endif
ifeq ($(CLASS), external)
CFLAGS+=-DEXTERNAL_TUK
endif
ifeq ($(MONITORS), ondemand)
CFLAGS+=-DON_DEMAND_MONITORS
endif
Amri
source
share