PLATFORM := lin
endif
-OBJ := main.o syscalls.o request.o memory.o exports.o
+OBJ := main.o syscalls.o request.o memory.o exports.o heap.o
OBJ := $(addprefix obj-$(PLATFORM)/,$(OBJ))
ifeq ($(PLATFORM),win)
CFLAGS += -Werror
CFLAGS += -g -shared -fPIC
CPPFLAGS += -DARCHDIR_is_x86_64=1
-LDFLAGS += -g -shared -Wl,--no-undefined
+LDFLAGS += -g -shared -Wl,--no-undefined -lc
DEPFILES = $(filter %.o,$(OBJ))
DEPFILES := $(DEPFILES:%=%.dep)