Make file example code, Make file example code -12 – Moxa Technologies EM-1240-LX User Manual

Page 28

Advertising
background image

EM-1240-LX User’s Manual

Getting Started

2-12

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) [email protected]

clean:

rm -f $(OBJS) hello core *.gdb

Advertising