#
# Acess2 Kernel
# arm7 Architecture Makefile
# arch/arm7/Makefile

CPPFLAGS	=
CFLAGS		=
ASFLAGS		=

CPPFLAGS += -DMMU_PRESENT=1
LDFLAGS += `$(CC) --print-libgcc-file-name`

A_OBJ  = start.ao main.o lib.o lib.ao time.o pci.o debug.o
A_OBJ += mm_phys.o mm_virt.o proc.o proc.ao
A_OBJ += vpci_$(PLATFORM).o platform_$(PLATFORM).o

#main.c: Makefile.BuildNum.$(ARCH)

ifeq ($(PLATFORM),tegra2)
	POSTBUILD = arm-eabi-objcopy $(BIN) -O binary $(BIN).flat && gzip -f $(BIN).flat
endif
