Skip to content

Conversation

@thekhalifa
Copy link
Contributor

Makefile to compile all examples/ along with minor compile fixes to examples/compression

When reading the examples, it's helpful to have them compiled already to compare output.
Also various examples are slightly out of date with modern libraries and FreeBASIC, so attempting to correct some of those examples along the way.

thekhalifa and others added 4 commits January 31, 2025 19:46
When reading the examples, it's helpful to have
them compiled already to compare output.

This makefile attempts to compile as many examples
as possible and ignores failures due to missing
libraries or different targets.
zip.bi was redefined in 2015, match those types to enable
the example to compile
Change #if to #if defined() to allow it to compile
- test the Makefile on windows
- skip DOS files on OS=Windows_NT
- add DLLEXT variable to discriminate .so versus .dll
- add export specifier in examples/threads/timer-lib/timer.bas
  allowing source to be compiled as static or shared (on windows)
  note: Makfile always compiles as shared
@jayrm
Copy link
Member

jayrm commented Feb 18, 2025

This is a good idea and a good starting point. I will make a few edits for windows (if this PR allows me) and then merge.

@jayrm jayrm merged commit e72986a into freebasic:master Feb 18, 2025
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.

2 participants