INCLUDE_PATH= $(HPGCC)/include LIBS_PATH= $(HPGCC)/lib ELF2HP_PATH=$(HPGCC)/elf2hp export CUR_DIR= $(shell pwd) export CC= arm-elf-gcc export C_FLAGS= -mtune=arm920t -mcpu=arm920t \ -mlittle-endian -fomit-frame-pointer -msoft-float -Wall \ -Os -I$(INCLUDE_PATH) -L$(LIBS_PATH) -mthumb-interwork -mthumb export LD= arm-elf-ld export LD_FLAGS= -L$(LIBS_PATH) -T VCld.script $(LIBS_PATH)/crt0.o export LIBS=-lfsystem -lhpg -lhplib -lgcc export AR= arm-elf-ar export ELF2HP= elf2hp MODULES = benchmarks games SRC = $(shell echo *.c) OBJ = $(SRC:%.c=%.o) EXE = $(SRC:%.c=%.exe) HP = $(SRC:%.c=%.hp) all: $(HP) install: all clean: -rm -f *.o -rm -f *.hp -rm -f *.exe archive: clean cd ..; tar cjvf examples.tar.bz2 examples %.o: %.c $(CC) $(C_FLAGS) -c $< %.exe: %.o $(LD) $(LD_FLAGS) $< $(LIBS) -o $@ %.hp: %.exe $(ELF2HP) $< $@