交叉编译 Makefile 示例
脚本类型的 Makefile(不需要交叉编译)
# by Qige <[email protected]> since 2017.03.18
all:
clean:
# NO cross-compile
需要交叉编译的 Makefile
# by Qige <[email protected]> since 2017.03.15
APP=rarp
all: $(APP)
$(APP): src/*.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -I. -o $@ $^ -L.
clean:
rm -f $(APP) src/*.o
# Cross-compile