Moxa EM-1220-LX [26/57] Make file example code

Moxa EM-1220-T-LX [26/57] Make file example code
EM-1240-LX User’s Manual Getting Started
2-10
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

Содержание

Похожие устройства

Скачать