本文主要是介绍记录下Makefile,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
把Makefile记录下,以后别忘了。
#CC = aarch64-linux-gnu-gcc
#AS = aarch64-linux-gnu-as
#AR = aarch64-linux-gnu-ar
CC = gcc
AS = as
AR = arPROGRAMS =mainCUR_DIR = $(shell pwd)
SRCS = $(CUR_DIR)/src
INCS = $(CUR_DIR)/inc
LIBS = -L $(CUR_DIR)/lib -lvsipl
LIBS += -L $(CUR_DIR)/lib -lNE10
LIBS += -lm
CCFLAGS := -I$(INCS)
VPATH =$(SRCS)objects = main.o cmd.o common.o random.o scalar.o signal.o matrix.o copy.o algebra.o elementwise.o maxmin.o precise.oall:$(PROGRAMS)$(PROGRAMS): $(objects)$(CC) $(objects) -o $@ $(LIBS)
%.o: %.c$(CC) $(CCFLAGS) -c $< -o $@ $(LIBS)clean:@rm -f *.o *.out@rm -f $(PROGRAMS)
这篇关于记录下Makefile的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!