Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates allowing to improve building on linux. #13

Open
wants to merge 21 commits into
base: markusC64-v637-branch
Choose a base branch
from

Conversation

t-w
Copy link

@t-w t-w commented May 6, 2024

Main changes:

  1. allow to build only tools that do not require opencbm (nibconv, nibrepair, nibscan)
    • these tools can be used by more people than the tools for transferring data from a C= drive (not many people have the hardware...)
    • this is just as a quick change, to make it possible (otherwise heavy changes in build configurations needed...)
    • made these tools build first (so that the build fails after building these)
    • minimized dependencies (includes and link) so that opencbm is not required (where not needed/used)
  2. path to opencbm can be set in LINUX/Makefile
  3. added main makefile where the build env. can be selected (then just make / make clean etc.)
  4. couple of other minor fixes/improvements.

Other notes:

  1. I am not sure where to open a PR, if this is not the right branch let me know where (if you want to merge it).

  2. Note that these changes are tested (briefly) only on Debian Linux. The changes are not big so should not make much trouble, but I cannot guarantee that eg. on DJGPP something unexpected won't happen, so...

t-w added 21 commits May 6, 2024 20:31
Otherwise, if opencbm is not available - it is not possible
to build the program that do not need openpbm.

Note that this modification is a quick shortcut, not resolving
the problem fully (ie. install rules will not work with not
all programs built...).
In general, improving configuration options and build
dependencies should allow to build things depending what
is needed. In particular, the tools that do not require
the openpbm driver, should not require it for building.
The RELATIVEPATH suggests that the build was supposed
to be executed in LINUX/ directory (maybe producing
binaries there), but this is inconsistent with
GNU/Makefile (it, basically, does not work that way).

Removing it and building things in the main project directory.
…and nibwrite).

opencbm is used only by the utilities for data transfer
using serial cable. Other utilities do not need it.
This reverts commit 5e83f3a.

fileio needs prototype of usage (an external defined in the main
module of each utility).
Make extern things already defined in read.c
usleep() is a POSIX function, not provided by c99.
Proper source type must be set to build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant