make_prg.txt
来自「speech signal process tools」· 文本 代码 · 共 122 行
TXT
122 行
# **********************************************************# Project: ARG General libraries# SubTree: PROJECT_DIR_NAME/src/progs# Filename: Makefile# Programmer: J. Fiscus# Organization: NIST/NCSL/DIV 670/Auto Rec. Group# Host System: SUN 4 OS/4.1.1 (UNIX)# Date Created: 05/28/92## **********************************************************# Makefile for SRC Binary Directory# **********************************************************SHELL = /bin/shPROJECT_ROOT = PROJECT_DIR_NAME# **************************************************# INDIVIDUAL PROGRAM MODIFICATIONS SHOULD BEGIN HERE# **************************************************# Program to make (binary name)EXECUTABLE = EXECUTABLE_NAMES# Supporting functions to make if any (They will be included in every compile)OBJ = OBJECT_NAMES# List all .c source code filesSRC = SOURCE_NAMES# Subdirectorys to make SUBS = PROG_SUBDIR_NAMES# LIBS needed to compile the EXECUTABLE# (Full paths eg: /usr/local/image/lib/libimage.a)# use $(LIBDIR) defined above for path extensions if appropriateLIBS = $(PROJECT_ROOT)/lib# How the libraries look when invoked on the compile line (eg: -limage)LLIBS = LINK_LIBRARY_NAMES -lm# Local additions for CFLAG options (eg: -g)LOCAL_CFLAGS = -g LOCAL_CC_DEFINES# *******************************************************# THE REST OF THE MAKEFILE SHOULD NOT NEED TO BE MODIFIED# (EXCEPT UPON APPROVAL OF PROJECT MANAGER)# *******************************************************BIN = $(PROJECT_ROOT)/binINCLUDE = $(PROJECT_ROOT)/includeLIBDIR = $(LIBS)CFLAGS = -I$(INCLUDE) -L$(LIBDIR) $(LOCAL_CFLAGS)CC = COMPILER_COMMANDINSTALL = INSTALL_COMMANDMAKEFILE = Makefile.PRECIOUS: $(MAKEFILE)#.c: $(BIN)/$@ stub.o# $(CC) $@.c $(FUNCT_O) $(LLIBS) -o $@##.c.o:# cc -c $@.cit: $(EXECUTABLE) $(SUBS) @-X=`pwd`; \ for i in $(SUBS) ; do \ echo '<<' $$i '>>'; \ cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); \ doneinstall: $(MAKEFILE) $(EXECUTABLE) $(INSTALL) $(EXECUTABLE) $(BIN) @-X=`pwd`; \ for i in $(SUBS) ; \ do echo '<<' $$i '>>'; \ cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); \ done$(EXECUTABLE): $(OBJ) $(CC) $(CFLAGS) $@.c $(OBJ) $(LLIBS) -o $@# if there are other separate programs to compile, add the name to# SRC, OBJ, ... and the redo the last 3 lines EXPLICITLY# for each program.# Install will also have to be changed.clean : rm -f *.o $(EXECUTABLE) core a.out *.BAK @-X=`pwd`; \ for i in `echo $(SUBS)` ; do \ echo '<<' $$i '>>'; cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); \ done;bare: clean rm -f $(EXECUTABLE) @-X=`pwd`; \ for i in `echo $(SUBS)` ; do \ echo '<<' $$i '>>'; cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); \ done;$(MAKEFILE): $(SRC) $(CC) $(CFLAGS) -M $(SRC) > dependlist @sed -e '1,/^# DO NOT DELETE/!d' $(MAKEFILE) > $(MAKEFILE).tmp.$$$$; \ cat dependlist >> $(MAKEFILE).tmp.$$$$; \ cp $(MAKEFILE) $(MAKEFILE).BAK; \ mv $(MAKEFILE).tmp.$$$$ $(MAKEFILE); \ rm -f dependlist; \ @-X=`pwd`; \ if test -n "$(SUBS)" ; then for i in $(SUBS) ; do echo '<<' $$i '>>'; \ cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); done ; fi;depend: $(SRC) $(CC) $(CFLAGS) -M $(SRC) > dependlist @sed -e '1,/^# DO NOT DELETE/!d' $(MAKEFILE) > $(MAKEFILE).tmp.$$$$; \ cat dependlist >> $(MAKEFILE).tmp.$$$$; \ cp $(MAKEFILE) $(MAKEFILE).BAK; \ mv $(MAKEFILE).tmp.$$$$ $(MAKEFILE); \ rm -f dependlist; \ echo make depend complete @-X=`pwd`; \ if test -n "$(SUBS)" ; then for i in $(SUBS) ; do echo '<<' $$i '>>'; \ cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); done ; fi;# DO NOT DELETE THIS LINE - make depend uses it
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?