makefile
来自「speech signal process tools」· 代码 · 共 96 行
TXT
96 行
# **********************************************************# Project: ARG General libraries# SubTree: /auto/epiwrl/h3/devel_source/general/src/lib_header/sphere2.0/src/progs h_modify.o # 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# **********************************************************PROJECT_ROOT = /auto/epiwrl/h3/devel_source/general/src/lib_header/sphere2.0SHELL = /bin/sh# **************************************************# INDIVIDUAL PROGRAM MODIFICATIONS SHOULD BEGIN HERE# **************************************************# Program to make (binary name)EXECUTABLE = h_delete# Supporting functions to make if any (They will be included in every compile)OBJ = h_modify.o # List all .c source code filesSRC = h_delete.c h_modify.c # 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 = -lsp -lutil -lm# Local additions for CFLAG options (eg: -g)LOCAL_CFLAGS = -g -DNARCH_ULTRIX# *******************************************************# 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 = cc INSTALL = cpMAKEFILE = Makefile.PRECIOUS: $(MAKEFILE)#.c: $(BIN)/$@ stub.o# $(CC) $@.c $(FUNCT_O) $(LLIBS) -o $@##.c.o:# cc -c $@.cit: $(EXECUTABLE)install: $(MAKEFILE) $(EXECUTABLE) $(INSTALL) $(EXECUTABLE) $(BIN)$(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 *.BAKbare: clean rm -f $(EXECUTABLE)$(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;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# DO NOT DELETE THIS LINE - make depend uses it
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?