EM-1240-LX User’s Manual

Getting Started

Make File Example Code

The following Make File example codes are copied from the Hello example on the EM-1240-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

2-12

Page 28
Image 28
Moxa Technologies EM-1240-LX user manual Make File Example Code, Cflags =