EM-1220 LX User’s Manual
Getting Started
2-11
Make File Sample Code
The following Make File example code was copied from the Hello example on the EM-1220-LX’s
CD-ROM.
srcdir = .
LDFLAGS = -Wl,-elf2flt
LIBS =
CFLAGS =
# Change these if necessary
CC = arm-elf-gcc
CPP = arm-elf-gcc -E
all: hello
hello:
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(LIBS) $@.c
clean:
rm -f $(OBJS) hello core *.gdb