AminetAminet
Search:
85026 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/c/makedepend_AmiMod.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:makedepend bugfixed + modified for smake
Author:Todd Brunhoff, Tektronix, Inc. and MIT Project Athena
Uploader:hagbardcelin gmail com (Hagbard Celine)
Type:dev/c
Version:1.0.9
Architecture:m68k-amigaos
Date:2025-11-07
Download:dev/c/makedepend_AmiMod.lha - View contents
Readme:dev/c/makedepend_AmiMod.readme
Downloads:1319

This is a port of makedepend 1.0.9 from Xorg with modifications for use with
smake. It is an much needed update/rewrite of my earlier port of version
1.0.8, which I must sadly admit was released in a state of "it compiles, and
works for my use-case".


The stack usage is dependent on organization of the files it is parsing. The
binary is compiled without stackcheck/stackextend, and will crash hard if it
runs out of stack. A stack of 8K seems to probably be enough in most cases as
long as the system includes are excluded from the dependency-graph with the
"-Y" option without a following directory.


Due to the lack-of-thought that went into my previous port, some command-line
options have changed and some have been removed for being useless.
The main changes in this port relative to upstream are:

Not Amiga-specific:
-Fixed broken link detection in include.c.

-Fixed broken same-file detection in include.c.

-Don't stat a missing file twice if all files are in the current directory.

-The "-q" option now silently ignores missing system includes.

-The "-Q" option now disables all warnings.

Amiga-specific:
-Modified to understand Amiga paths, and not to escape the ":" character.

-The default filename for output is changed to SMakefile.

-Added a stack-cookie for OS3.9+ setting minimum stack to 8K.

-Default defines are equivalent to:
#define _AMIGA 1
#define _M68000 1
#define __SASC 1

-Added -A option to add the source file itself as the first dependency.

-If object files are supplied in place of source files it will try to find the
corresponding source file. Given "myfile.o" it will, in order, try to open:
"myfile.c", "myfile.cxx", "myfile.cpp" and "myfile.cc".

-Added "-B" option to strip the path from object files before trying to open
the corresponding source file.

-Added "-Oobjdir" option to strip part of the path from object files before
trying to open the corresponding source file.

-Added "-b" option to strip the path from object files before outputting the
dependency line.

-Added "-W" option to supply sourcefiles/objectfiles in a file.
And after doing so, discovered that there was actually already a undocumented
option for solving the same problem. I chose to ignore it as it apparently
comes from gcc, and will be removed if I ever get around to converting this to
understanding the command-line options of sc.

-Removed the "-o" option, object-files always end in ".o".

-Removed much of the not relevant for compiling-on/using-with sc/smake on
Amiga code.


Additionally the main differences relative to the 1.0.8 port are:
-Absolute paths were not handles correctly in all cases, this should be fixed
in this version.

-The "-Ssourceprefix" and "-Pincprefix" options have been removed for being
defective. And also for being mostly useless if correctly implemented.

-It did not always back-out gracefully on failed memory allocations, this was
fixed by upstream.

-The objectfile path was not actually compared against the string in objdir,
it just blindly cut of strlen(objdir) from the beginning of the path. It now
checks if the strings matches first.


Special thanks goes to Rainer Koppler who's earlier port made me able to get
this to compile in the first place.
And also to all the nice people at eab.abime.net for answering all my stupid
programming questions.




Contents of dev/c/makedepend_AmiMod.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                    597    1233  48.4% -lh5- e64b Nov  6 23:29 makedepend_AmiMod.info
[Amiga]                    289     450  64.2% -lh5- 7fd7 Apr 26  2025 makedepend_AmiMod/AUTHORS
[Amiga]                   1051    2615  40.2% -lh5- 4f53 Apr 26  2025 makedepend_AmiMod/COPYING
[Amiga]                   1510    3464  43.6% -lh5- 46d9 Nov  1 12:11 makedepend_AmiMod/cppsetup.c
[Amiga]                   2475    6665  37.1% -lh5- 23a6 Nov  6 15:42 makedepend_AmiMod/def.h
[Amiga]                   2897   12210  23.7% -lh5- acfb Nov  1 12:11 makedepend_AmiMod/ifparser.c
[Amiga]                   1201    2555  47.0% -lh5- ffef Nov  1 12:12 makedepend_AmiMod/ifparser.h
[Amiga]                   1008    1919  52.5% -lh5- 4f98 Nov  2 07:11 makedepend_AmiMod/imakemdep.h
[Amiga]                   3792   10380  36.5% -lh5- e6fb Nov  6 22:19 makedepend_AmiMod/include.c
[Amiga]                   6343   20673  30.7% -lh5- b2d9 Nov  6 23:37 makedepend_AmiMod/main.c
[Amiga]                  19158   32716  58.6% -lh5- 390c Nov  6 23:37 makedepend_AmiMod/makedepend
[Amiga]                   4158   12317  33.8% -lh5- 8b60 Nov  6 23:07 makedepend_AmiMod/makedepend.guide
[Amiga]                    540    3204  16.9% -lh5- eb0f Nov  6 23:27 makedepend_AmiMod/makedepend.guide.info
[Amiga]                   4858   16647  29.2% -lh5- d9c8 Nov  1 12:11 makedepend_AmiMod/parse.c
[Amiga]                   1626    3905  41.6% -lh5- 15d9 Nov  6 22:19 makedepend_AmiMod/pr.c
[Amiga]                   1682    3573  47.1% -lh5- 9056 Nov  6 23:50 makedepend_AmiMod/README.amiga
[Amiga]                    244     464  52.6% -lh5- a8d4 Nov  6 23:53 makedepend_AmiMod/README.amiga.info
[Amiga]                    112     172  65.1% -lh5- cbe4 Nov  5 09:44 makedepend_AmiMod/SCOPTIONS
[Amiga]                    296     576  51.4% -lh5- d737 Nov  6 23:37 makedepend_AmiMod/SMakefile
[Amiga]                    427     932  45.8% -lh5- db24 Apr 26  2025 makedepend_AmiMod/tests/1/makedep.sh
[Amiga]                     17      17 100.0% -lh0- e381 Apr 26  2025 makedepend_AmiMod/tests/1/one.cpp
[Amiga]                     17      17 100.0% -lh0- e381 Apr 26  2025 makedepend_AmiMod/tests/1/two.cpp
[Amiga]                     16      16 100.0% -lh0- a57c Apr 26  2025 makedepend_AmiMod/tests/28045/foo.cpp
[Amiga]                    345     666  51.8% -lh5- 6144 Apr 26  2025 makedepend_AmiMod/tests/28045/makedep.sh
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        24 files   54659  137386  39.8%            Nov  7 00:08
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>