1f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project.PHONY: all
2f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Projectall: runtest
3f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
4f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project$(shell mkdir -p out)
5f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
6f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source ProjectCC := gcc
7f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source ProjectCFLAGS := -g -Wall -Werror
8f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project#CFLAGS += -O2
9f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
10f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Projectout/main.o: main.c ../../HeapBitmap.h
11f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project	$(CC) $(CFLAGS) -c $< -o $@ -I ../..
12f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
13f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Projectout/HeapBitmap.o: ../../HeapBitmap.c ../../HeapBitmap.h ../../clz.h include/cutils/ashmem.h include/Dalvik.h
14f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project	$(CC) $(CFLAGS) -c $< -o $@ -I ../.. -I include
15f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
16f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Projectout/clz.o: ../../clz.c ../../clz.h
17f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project	$(CC) $(CFLAGS) -c $< -o $@ -I ../..
18f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
19f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Projectout/hbtest: out/main.o out/HeapBitmap.o out/clz.o
20f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project	$(CC) $^ -o $@
21f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
22f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project.PHONY: runtest
23f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Projectruntest: out/hbtest
24f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project	out/hbtest
25f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project
26f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project.PHONY: clean
27f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Projectclean:
28f6c387128427e121477c1b32ad35cdcaa5101ba3The Android Open Source Project	rm -rf out
29