Moxa Technologies EM-1240-LX Network Card User Manual


 
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) $@.c
clean:
rm -f $(OBJS) hello core *.gdb