makefile

来自「atmel芯片的Linux驱动程序。很多802.11协议的无限网卡都使用该芯片」· 代码 · 共 76 行

TXT
76
字号
########################################## Makefile of Fucd			##########################################CC:=$(shell wx-config --cxx)CCC:=gccCFLAGS:=$(shell wx-config --cxxflags) CFLAGS1:=$(shell wx-config --libs)CCFLAGS:= -O2 -Wall -Wstrict-prototypesOUTDIR:="/usr/local/bin"# All object filesCOBJS:= atmelmain.o dfu.oOBJS:= FucdApp.o FucdLayer.o dfu.o atmel.ousage:	@echo -e "make clean\tRemove object files and executables"	@echo -e "make fucd\tBuild X upgrade utility"	@echo -e "make atmelup\tBuild command line upgrade utility"	@echo -e "make all\tBuild both utilities"all: fucd atmelupfucd: wxconfig $(OBJS: .o=.c)	@echo -e "Building fucd wxWidgets application..."	$(CC) -o fucd $(OBJS) $(CFLAGS1) -lusb atmelup: $(COBJS)	@echo -e "Building atmelup command-line tool..."	$(CCC) $(CCFLAGS) $(COBJS) -lusb -o $@wxconfig:	@config_exists=no;\	for path_dir in `echo $(PATH) | tr : ' '`; do\	  if test -f $$path_dir/wx-config; then\	    config_exists=yes;\	  fi\	done;\	if test $$config_exists = 'no'; then\	  echo 'It seems that the wxWindows library is not installed.';\	  echo 'wx-config, the script providing information about wxWindows';\	  echo 'installation, is missing. Please, refer to the README.linux';\	  echo 'or visit www.wxwindows.org for further information.';\	  echo 'We are sorry about the inconvenience.';\	  exit -1;\	fiFucdApp.o: FucdApp.cpp FucdApp.h	$(CC) $(CFLAGS) -c $<FucdLayer.o: FucdLayer.cpp FucdLayer.h 	$(CC) $(CFLAGS) -c $<atmel.o: atmel.c 	$(CCC) $(CCFLAGS) -c $< dfu.o: dfu.c dfu.h	$(CCC) $(CCFLAGS) -c $<atmelmain.o: atmel.c		$(CCC) $(CCFLAGS) -DCONSOLE_APP -c $< -o $@clean:	@echo -e "Removing all objects and executables..."	@find . -name '*.o' | xargs rm -f *.o	@rm -f fucd atmelupinstall:	@echo -e "Installing fucd to $(OUTDIR)"	@if [ -e fucd ]; then install -m 755 fucd $(OUTDIR) ; fi	@echo -e "Installing atmelup to $(OUTDIR)"	@if [ -e atmelup ]; then install -m 755 atmelup $(OUTDIR) ; fi

⌨️ 快捷键说明

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