mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00:00
49 lines
2.1 KiB
Text
49 lines
2.1 KiB
Text
############################################################################
|
|
# mm/dmalloc/Make.defs
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership. The
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance with the
|
|
# License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
############################################################################
|
|
|
|
# dmalloc memory allocator
|
|
|
|
ifeq ($(CONFIG_MM_DMALLOC),y)
|
|
CSRCS += append.c arg_check.c chunk.c compat.c dmalloc_rand.c
|
|
CSRCS += dmalloc_tab.c env.c error.c heap.c user_malloc.c
|
|
CSRCS += mm_dmalloc.c
|
|
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_EXECINFO_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_STDARG_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_STDIO_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_STDLIB_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_STRING_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_STRINGS_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_SIGNAL_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_SYS_CYGWIN_H=0}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_SYS_MMAN_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_SYS_TYPES_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_UNISTD_H=1}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_W32API_WINBASE_H=0}
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" HAVE_W32API_WINDEF_H=0}
|
|
|
|
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)/mm/dmalloc}
|
|
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)/mm/dmalloc/dmalloc}
|
|
|
|
# Add the dmalloc directory to the build
|
|
|
|
DEPPATH += --dep-path dmalloc --dep-path dmalloc/dmalloc
|
|
VPATH += :dmalloc:dmalloc/dmalloc
|
|
endif
|