elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
libc
/
malloc
/
Makefile
File editor
# Makefile of /libc/malloc module COMPILER ?= ia16 LIB ?= out.a include $(TOPDIR)/libc/$(COMPILER).inc # options for default malloc (dev86) only: # allocations smaller than MCHUNK words (not bytes) are rounded up, # larger requests are allocated from heap as is. DEFINES += -DMCHUNK=16 #DEFINES += -DVERBOSE=1 #DEFINES += -DMINALLOC #DEFINES += -DLAZY_FREE #DEFINES += -DL_alloca # default malloc (dev86) DEFAULT_MALLOC_OBJS = \ malloc.o \ realloc.o \ free.o \ __mini_malloc.o \ __alloca_alloc.o \ __freed_list.o \ noise.o \ alloca.o \ # debug malloc (v7) DEBUG_MALLOC_OBJS = dmalloc.o # far malloc (single arena) FAR_MALLOC_OBJS = fmalloc.o # these objects work with any malloc OBJS = \ calloc.o \ brk.o \ sbrk.o \ dprintf.o \ # default and debug mallocs for all compilers OBJS += $(DEFAULT_MALLOC_OBJS) $(DEBUG_MALLOC_OBJS) # far malloc works with OWC only for now ifeq "$(COMPILER)" "watcom" OBJS += $(FAR_MALLOC_OBJS) fmemalloc.o endif IA16OBJS = \ stackcheck.o \ ifeq "$(COMPILER)" "ia16" OBJS += $(IA16OBJS) fmemalloc.o endif .PHONY: all all: $(LIB) $(LIB): $(LIBOBJS) $(RM) $@ $(AR) $(ARFLAGS_SUB) $@ $(LIBOBJS) clean: $(RM) *.[aod]
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history