mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-12 09:57:05 +03:00
e9b1c1bac6
git-svn-id: svn://kolibrios.org@6725 a494cfbc-eb01-0410-851d-a64ba20cac60
290 lines
10 KiB
Plaintext
290 lines
10 KiB
Plaintext
# 1 February 2008. SMS.
|
|
#
|
|
# UnZip 6.0 for VMS - MMS Dependency Description File.
|
|
#
|
|
# MMS /EXTENDED_SYNTAX description file to generate a C source
|
|
# dependencies file. Unsightly errors result when /EXTENDED_SYNTAX
|
|
# is not specified. Typical usage:
|
|
#
|
|
# $ MMS /EXTEND /DESCRIP = [.VMS]DESCRIP_MKDEPS.MMS /SKIP
|
|
#
|
|
# Note that this description file must be used from the main
|
|
# distribution directory, not from the [.VMS] subdirectory.
|
|
#
|
|
# This description file uses these command procedures:
|
|
#
|
|
# [.VMS]MOD_DEP.COM
|
|
# [.VMS]COLLECT_DEPS.COM
|
|
#
|
|
# MMK users without MMS will be unable to generate the dependencies file
|
|
# using this description file, however there should be one supplied in
|
|
# the kit. If this file has been deleted, users in this predicament
|
|
# will need to recover it from the original distribution kit.
|
|
#
|
|
# Note: This dependency generation scheme assumes that the dependencies
|
|
# do not depend on host architecture type or other such variables.
|
|
# Therefore, no "#include" directive in the C source itself should be
|
|
# conditional on such variables.
|
|
#
|
|
# The default target is the comprehensive source dependency file,
|
|
# DEPS_FILE = [.VMS]DESCRIP_DEPS.MMS.
|
|
#
|
|
# Other targets:
|
|
#
|
|
# CLEAN deletes the individual source dependency files,
|
|
# *.MMSD;*, but leaves the comprehensive source dependency
|
|
# file.
|
|
#
|
|
# CLEAN_ALL deletes all source dependency files, including the
|
|
# individual *.MMSD;* files and the comprehensive file,
|
|
# DESCRIP_DEPS.MMS.*.
|
|
#
|
|
|
|
# Required command procedures.
|
|
|
|
COMS = [.VMS]MOD_DEP.COM [.VMS]COLLECT_DEPS.COM
|
|
|
|
# Include the source file lists (among other data).
|
|
|
|
INCL_DESCRIP_SRC = 1
|
|
.INCLUDE [.VMS]DESCRIP_SRC.MMS
|
|
|
|
# The ultimate product, a comprehensive dependency list.
|
|
|
|
DEPS_FILE = [.VMS]DESCRIP_DEPS.MMS
|
|
|
|
# Detect valid qualifier and/or macro options.
|
|
|
|
.IF $(FINDSTRING Skip, $(MMSQUALIFIERS)) .eq Skip
|
|
DELETE_MMSD = 1
|
|
.ELSIF NOSKIP
|
|
PURGE_MMSD = 1
|
|
.ELSE
|
|
UNK_MMSD = 1
|
|
.ENDIF
|
|
|
|
# Dependency suffixes and rules.
|
|
#
|
|
# .FIRST is assumed to be used already, so the MMS qualifier/macro check
|
|
# is included in each rule (one way or another).
|
|
|
|
.SUFFIXES_BEFORE .C .MMSD
|
|
|
|
.C.MMSD :
|
|
.IF UNK_MMSD
|
|
@ write sys$output -
|
|
" /SKIP_INTERMEDIATES is expected on the MMS command line."
|
|
@ write sys$output -
|
|
" For normal behavior (delete .MMSD files), specify ""/SKIP""."
|
|
@ write sys$output -
|
|
" To retain the .MMSD files, specify ""/MACRO = NOSKIP=1""."
|
|
@ exit %x00000004
|
|
.ENDIF
|
|
$(CC) $(CFLAGS_INCL) $(MMS$SOURCE) /NOLIST /NOOBJECT -
|
|
/MMS_DEPENDENCIES = (FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
|
|
# List of MMS dependency files.
|
|
|
|
# In case it's not obvious...
|
|
# To extract module name lists from object library module=object lists:
|
|
# 1. Transform "module=[.dest]name.OBJ" into "module=[.dest] name".
|
|
# 2. For [.VMS], add [.VMS] to name.
|
|
# 3. Delete "*]" words.
|
|
#
|
|
# A similar scheme works for executable lists.
|
|
|
|
MODS_LIB_UNZIP_N = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.OBJ, *] *, $(MODS_OBJS_LIB_UNZIP_N)))
|
|
|
|
MODS_LIB_UNZIP_V = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.OBJ, *] [.VMS]*, $(MODS_OBJS_LIB_UNZIP_V)))
|
|
|
|
MODS_LIB_UNZIPCLI_V = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.OBJ, *] [.VMS]*, $(MODS_OBJS_LIB_UNZIPCLI_C_V)))
|
|
|
|
MODS_LIB_UNZIPSFX_N = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.OBJ, *] *, $(MODS_OBJS_LIB_UNZIPSFX_N)))
|
|
|
|
MODS_LIB_UNZIPSFX_V = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.OBJ, *] [.VMS]*, $(MODS_OBJS_LIB_UNZIPSFX_V)))
|
|
|
|
MODS_UNZIP = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.EXE, *] *, $(UNZIP)))
|
|
|
|
MODS_UNZIP_CLI = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.EXE, *] *, $(UNZIP_CLI)))
|
|
|
|
MODS_UNZIPSFX = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.EXE, *] *, $(UNZIPSFX)))
|
|
|
|
MODS_UNZIPSFX_CLI = $(FILTER-OUT *], \
|
|
$(PATSUBST *]*.EXE, *] *, $(UNZIPSFX_CLI)))
|
|
|
|
# Complete list of C object dependency file names.
|
|
# Note that the CLI UnZip main program object file is a special case.
|
|
|
|
DEPS = $(FOREACH NAME, \
|
|
$(MODS_LIB_UNZIP_N) $(MODS_LIB_UNZIP_V) \
|
|
$(MODS_LIB_UNZIPCLI_V) \
|
|
$(MODS_LIB_UNZIPSFX_N) $(MODS_LIB_UNZIPSFX_V) \
|
|
$(MODS_UNZIP) $(MODS_UNZIP_CLI) \
|
|
$(MODS_UNZIPSFX) $(MODS_UNZIPSFX_CLI), \
|
|
$(NAME).mmsd)
|
|
|
|
# Default target is the comprehensive dependency list.
|
|
|
|
$(DEPS_FILE) : $(DEPS) $(COMS)
|
|
.IF UNK_MMSD
|
|
@ write sys$output -
|
|
" /SKIP_INTERMEDIATES is expected on the MMS command line."
|
|
@ write sys$output -
|
|
" For normal behavior (delete individual .MMSD files), specify ""/SKIP""."
|
|
@ write sys$output -
|
|
" To retain the individual .MMSD files, specify ""/MACRO = NOSKIP=1""."
|
|
@ exit %x00000004
|
|
.ENDIF
|
|
#
|
|
# Note that the space in P4, which prevents immediate macro
|
|
# expansion, is removed by COLLECT_DEPS.COM.
|
|
#
|
|
@[.VMS]COLLECT_DEPS.COM "UnZip" -
|
|
"$(MMS$TARGET)" "[...]*.mmsd" "[.$ (DEST)]" $(MMSDESCRIPTION_FILE)
|
|
@ write sys$output -
|
|
"Created a new dependency file: $(MMS$TARGET)"
|
|
.IF DELETE_MMSD
|
|
@ write sys$output -
|
|
"Deleting intermediate .MMSD files..."
|
|
delete /log *.MMSD;*, [.VMS]*.MMSD;*
|
|
.ELSE
|
|
@ write sys$output -
|
|
"Purging intermediate .MMSD files..."
|
|
purge /log *.MMSD, [.VMS]*.MMSD
|
|
.ENDIF
|
|
|
|
# CLEAN target. Delete the individual C dependency files.
|
|
|
|
CLEAN :
|
|
if (f$search( "*.MMSD") .nes. "") then -
|
|
delete /log *.MMSD;*
|
|
if (f$search( "[.VMS]*.MMSD") .nes. "") then -
|
|
delete /log [.VMS]*.MMSD;*
|
|
|
|
# CLEAN_ALL target. Delete:
|
|
# The individual C dependency files.
|
|
# The collected source dependency file.
|
|
|
|
CLEAN_ALL :
|
|
if (f$search( "*.MMSD") .nes. "") then -
|
|
delete /log *.MMSD;*
|
|
if (f$search( "[.VMS]*.MMSD") .nes. "") then -
|
|
delete /log [.VMS]*.MMSD;*
|
|
if (f$search( "[.VMS]DESCRIP_DEPS.MMS") .nes. "") then -
|
|
delete /log [.VMS]DESCRIP_DEPS.MMS;*
|
|
|
|
# Explicit dependencies and rules for utility variant modules.
|
|
#
|
|
# The extra dependency on the normal dependency file obviates including
|
|
# the /SKIP warning code in each rule here.
|
|
|
|
CRC32_.MMSD : CRC32.C CRC32.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
CRYPT_.MMSD : CRYPT.C CRYPT.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
EXTRACT_.MMSD : EXTRACT.C EXTRACT.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
FILEIO_.MMSD : FILEIO.C FILEIO.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
GLOBALS_.MMSD : GLOBALS.C GLOBALS.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
INFLATE_.MMSD : INFLATE.C INFLATE.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
MATCH_.MMSD : MATCH.C MATCH.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
PROCESS_.MMSD : PROCESS.C PROCESS.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
TTYIO_.MMSD : TTYIO.C TTYIO.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
UBZ2ERR_.MMSD : UBZ2ERR.C UBZ2ERR.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
[.VMS]VMS_.MMSD : [.VMS]VMS.C [.VMS]VMS.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
UNZIP_CLI.MMSD : UNZIP.C UNZIP.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
UNZIPSFX.MMSD : UNZIP.C UNZIP.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_SFX) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
UNZIPSFX_CLI.MMSD : UNZIP.C UNZIP.MMSD
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(CFLAGS_SFX) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|
|
# Special case. No normal (non-CLI) version.
|
|
|
|
[.VMS]CMDLINE.MMSD : [.VMS]CMDLINE.C
|
|
.IF UNK_MMSD
|
|
@ write sys$output -
|
|
" /SKIP_INTERMEDIATES is expected on the MMS command line."
|
|
@ write sys$output -
|
|
" For normal behavior (delete .MMSD files), specify ""/SKIP""."
|
|
@ write sys$output -
|
|
" To retain the .MMSD files, specify ""/MACRO = NOSKIP=1""."
|
|
@ exit %x00000004
|
|
.ENDIF
|
|
$(CC) $(CFLAGS_INCL) $(CFLAGS_CLI) $(MMS$SOURCE) -
|
|
/NOLIST /NOOBJECT /MMS_DEPENDENCIES = -
|
|
(FILE = $(MMS$TARGET), NOSYSTEM_INCLUDE_FILES)
|
|
@[.VMS]MOD_DEP.COM $(MMS$TARGET) $(MMS$TARGET_NAME).OBJ $(MMS$TARGET)
|
|
|