phk:
	gcc -pipe -mcpu=pentiumpro -O3 -finline-limit=5000 -fkeep-inline-functions -finline-functions -ffast-math -fomit-frame-pointer -DNDEBUG  -UDEBUG -D_REENTRANT=1 -c phkmalloc_linux.c
	g++ -pipe -mcpu=pentiumpro -O3 -finline-limit=5000 -fkeep-inline-functions -finline-functions -ffast-math -fomit-frame-pointer -DNDEBUG  -UDEBUG -D_REENTRANT=1 -I../../heaplayers -shared libphkmalloc.cpp phkmalloc_linux.o -o libphkmalloc.so

debug:
	gcc -g -c phkmalloc_linux_vmcomm.c
	g++ -g -DDEBUG -I../../heaplayers -shared libphkmalloc.cpp phkmalloc_linux_vmcomm.o -o libdebug.so
#	gcc -g -c phkmalloc_linux.c
#	g++ -g -DDEBUG -I../../heaplayers -shared libphkmalloc.cpp phkmalloc_linux.o -o libphkmalloc.so

clean:
	rm *.so *.o
