📄 makefile.inc
字号:
################################################################################ @(#)Makefile.inc 1.11 89/09/13 Copyr 1988 SMI## Copyright (c) 1988 by Sun Microsystems, Inc.## Description:# This is the include for all the makefiles. The goals for designing# the makefiles follow:# 1) Each product should know what objects it is made of.# (prevent hidden dependencies)# 2) The dependency of an object should only be known at# the level of its source file.## Comments:# 1) The SRC_DIR macro should have been set before including this# file. It is the directory that is the root of the source tree.# 2) *** Release Engineering - set DESTDIR to what you want.# 3) Define local cpp flags LOCAL_CPPFLAGS before including this file# 4) No targets should be defined in this file!################################################################################## Set the target archecture macro#ARCH = $(TARGET_ARCH:-%=%)## Default Release level#RELEASE=NOT_SET## Directory to install the programs#DESTDIR = $(SRC_DIR)/../release/$(RELEASE)DESTDIR_SRC = $(DESTDIR)/srcDESTDIR_BIN = $(DESTDIR)/$(ARCH)/binDESTDIR_LIB = $(DESTDIR)/$(ARCH)/libDESTDIR_INC = $(DESTDIR)/$(ARCH)/includeDESTDIR_DEMO = $(DESTDIR)/$(ARCH)/netlic_sampleDESTDIR_ISAM = $(DESTDIR)/sunisamDESTDIR_MAN = $(DESTDIR)/$(ARCH)/man## These ENLD products will dissapear when we FCS NLD.#DESTDIR_ENLD_BIN = $(DESTDIR)/$(ARCH)/ENLD_bin## Location of the SUN-ISAM library and its name#SUNISAM_DIR = $(SRC_DIR)/../sunisam/$(ARCH)SUNISAM_LIB_DIR = $(SUNISAM_DIR)/lib## Uses the alpha isam library# Remember to link the right $inc/isam.h file if you change these# two lines. isam_old.h is used with libfst_isam.a and isam_new.h# is used with libisam.a#SUNISAM_LIB_FILE= $(SUNISAM_LIB_DIR)/libisam.aSUNISAM_LIB = -lisam#SUNISAM_LIB_FILE= $(SUNISAM_LIB_DIR)/libfst_isam.a#SUNISAM_LIB = -lfst_isam## Location of commonly referenced directories#SCHEMA_DIR = $(SRC_DIR)/schemaPROTO_DIR = $(SRC_DIR)/protocolUTILS_DIR = $(SRC_DIR)/utilsINC_DIR = $(SRC_DIR)/includeCLNT_LIB = $(SRC_DIR)/clnt_libs## Command macros and flag definitions#AWK = awkCPP = /lib/cppCPPFLAGS= -I. -I$(INC_DIR) -D$(ARCH) $(LOCAL_CPPFLAGS) LPR = lpr## Using System V lint##LINT=/usr/5bin/lint#LINTFLAGS= -c -Dlint#LINT.c = $(LINT) $(CPPFLAGS) $(LINTFLAGS)## Flags for Sun OS lint#LINTFLAGS= -achx -DlintCFLOW=cflowCFLOWFLAGS = $(CPPFLAGS)CFLOW_OUT=flow.outSCCS_CHECK_FILE=$(SRC_DIR)/sccs.outsSCCS_VERS_BASE=$(DESTDIR)/Module_SIDSSCCS_VERS_FILE=$(SCCS_VERS_BASE).${ARCH}SCCS_VERS_ARGS="-d Module:\t:M:\t:I:\t:D:"## Generic targets# We leave out release, install and sccs_check because we make# the locals for those before the nested#TARGETS = all cflow clean debug depend lint profile sccs_check install \ release tagsTARGETS.nested = $(TARGETS:%=%.nested)TARGETS.local = $(TARGETS:%=%.local)## C flags for the targets#all := CFLAGS= -Odebug := CFLAGS= -g -DDEBUGGINGprofile := CFLAGS= -pg -O -DPROFILEinstall := CFLAGS= -Oall.local := CFLAGS= -Odebug.local := CFLAGS= -g -DDEBUGGINGprofile.local := CFLAGS= -pg -O -DPROFILEinstall.local := CFLAGS= -O## Loader flags for the targets#all := LDFLAGS= -s $(LOCAL_LDFLAGS)debug := LDFLAGS= $(LOCAL_LDFLAGS)profile := LDFLAGS= $(LOCAL_LDFLAGS)install := LDFLAGS= -s $(LOCAL_LDFLAGS)release := LDFLAGS= -s $(LOCAL_LDFLAGS)all.local := LDFLAGS= -s $(LOCAL_LDFLAGS)debug.local := LDFLAGS= $(LOCAL_LDFLAGS)profile.local := LDFLAGS= $(LOCAL_LDFLAGS)install.local := LDFLAGS= -s $(LOCAL_LDFLAGS)release.local := LDFLAGS= -s $(LOCAL_LDFLAGS)## Lint Flags (Uncomment these if using SYS V lint)##lint := CPP=#lint.local := CPP=#lint := CFLAGS=#lint.local := CFLAGS=## Recursive Targets#all := TARGET = allcflow := TARGET = cflowclean := TARGET = cleandebug := TARGET = debugdepend := TARGET = dependinstall := TARGET = installlint := TARGET = lintprofile := TARGET = profilesccs_check := TARGET = sccs_checkrelease := TARGET = releasetags := TARGET = tags## All makefiles keep the command state#.KEEP_STATE:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -