makefile

来自「一个有关挂载U盘」· 代码 · 共 37 行

TXT
37
字号
#Thiss is a makefile for Linux# extension for object filesO = o# commandsCC = arm-linux-gcc# name of temporary library scriptTEMPFILE = $(TEMP)/temp.mak# standard include directorySTDINCDIR = /usr/local/arm/3.4.1/arm-linux/include# Mylib include directory# The places to look for include files (in order).INCL = -I. -I$(STDINCDIR) -I$(HEADDIR)# The places to look for so files (in order).PROG = all# Normal C flags.DFLAGS = -DDEBUG -DDOWNLOADCFLAGS = $(INCL) $(DFLAGS) -Wall -O2 -cOFLAGS = -Wall -O2 -o# The location of the common source directory.HEADDIR = ../inc/SRCDIR = ../src/BINDIR = ../bin/LIBDIR = ../lib/all : $(BINDIR)autodetect$(BINDIR)autodetect : main.$(O)	$(CC) $(OFLAGS) $@ $^ -lpthread	-L$(LIBDIR) -lCommonmain.$(O) : main.c $(HEADDIR)utility.h	$(CC) $(CFLAGS) main.cclean:	@rm -f *.$(O) $(BINDIR)autodetect 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?