#
# /emx/src/lib/tmalloc/makefile
#
.INCLUDE: /emx/src/lib/lib0.mak

.SOURCE.c: ..
.SOURCE.h: ..

.PHONY: clean default dstlib tmalloc

LIBTMALLOC=$(L)tmalloc.a

default: tmalloc

tmalloc .SETDIR=$(CPU):
	$(MAKE) -f ../makefile dstlib $(PASSDOWN)

dstlib: $(LIBTMALLOC)

clean:
	-del $(CPU)\*.o $(DELOPT)

tcalloc.o: tcalloc.c $(I)stdlib.h $(I)string.h $(I)malloc.h
tfree.o: tfree.c $(I)stdlib.h $(I)malloc.h tmalloc.h
tmalloc.o: tmalloc.c $(I)stdlib.h $(I)malloc.h $(I)os2thunk.h tmalloc.h
trealloc.o: trealloc.c $(I)stdlib.h $(I)malloc.h tmalloc.h

$(LIBTMALLOC): tcalloc.o tfree.o tmalloc.o trealloc.o
	-del $(LIBTMALLOC)
	$(AR) r $(LIBTMALLOC) *.o
