mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
$(TOPDIR), make: Add support for mpatrol
This commit is contained in:
parent
1397d1ae52
commit
3b5bbad650
4 changed files with 9 additions and 0 deletions
1
Makefile
1
Makefile
|
|
@ -4,6 +4,7 @@ MODDIR=.
|
|||
SUBDIRS = inst/pre \
|
||||
make \
|
||||
doc \
|
||||
contrib \
|
||||
debug misc slog platform \
|
||||
devutil \
|
||||
hash \
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ COMPILE_DEBUG_CODE = true
|
|||
USE_DMALLOC = true
|
||||
#USE_MEMWATCH = true
|
||||
#USE_EFENCE = true
|
||||
USE_MPATROL = true
|
||||
USE_COMPILER_DEBUG_OPTS = true
|
||||
#USE_COMPILER_OPTIMIZATION = true
|
||||
USE_TRACING = true
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ LIBTYPE = shared
|
|||
#USE_DMALLOC = true
|
||||
#USE_MEMWATCH = true
|
||||
#USE_EFENCE = true
|
||||
#USE_MPATROL = true
|
||||
#USE_COMPILER_DEBUG_OPTS = true
|
||||
#USE_COMPILER_OPTIMIZATION = true
|
||||
#USE_TRACING = true
|
||||
|
|
|
|||
|
|
@ -182,6 +182,12 @@ CPPFLAGS += -fprofile-arcs -ftest-coverage
|
|||
LDFLAGS += -fprofile-arcs -ftest-coverage
|
||||
endif
|
||||
|
||||
ifeq ($(USE_MPATROL),true)
|
||||
PROJECT_CFLAGS += -include $(MODDIR)/include/mpatrol.h
|
||||
#PROJECT_CPPFLAGS += -include $(MODDIR)/include/mpatrol.h
|
||||
PROJECT_LDFLAGS += -lmpatrolmt
|
||||
endif
|
||||
|
||||
ifeq ($(USE_TIMER),true)
|
||||
CFLAGS += -D_USE_TIMER_
|
||||
CPPFLAGS += -D_USE_TIMER_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue