13 Commits

Author SHA1 Message Date
Pablo Lezaeta Reyes 4b792146f3 feat: modernize build system with DESTDIR support and standard Unix conventions
Major build system overhaul implementing modern Unix build standards:

Build System Features:
- Add DESTDIR support for package building staging
- Add PREFIX, BINDIR, LIBDIR, INCLUDEDIR, MANDIR variables
- Add CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS support
- Implement proper variable propagation to all sub-makefiles
- Add automatic manual page installation
- Add library and header installation for development

Files Modified:
- Makefile: Complete rewrite with modern variable handling
- build.sh: Enhanced with environment variable propagation
- libhfs/Makefile*: Added DESTDIR and compiler variable support
- librsrc/Makefile*: Added DESTDIR and compiler variable support
- hfsck/Makefile*: Added DESTDIR and compiler variable support
- libhfs/os/unix.c: Fixed include issues for modern systems

Documentation:
- Add BUILD.md: Comprehensive build system documentation
- Add CHANGELOG.md: Consolidated version history (replaces CHANGES)
- Update COPYRIGHT: Consolidated license info (replaces COPYING)
- Add TEST_RESULTS.md: Build system test verification
- Update README.md: New build system features and documentation links

Testing & Validation:
- Add validate_build.sh: Build system validation script
- Add test_build.sh: Usage examples and testing script
- All tests pass on WSL/Ubuntu environment

Backward Compatibility:
- All existing build commands continue to work
- Enhanced functionality without breaking changes
- Optional traditional command symlinks maintained

Package Manager Support:
- Standard DESTDIR enables clean deb/rpm packaging
- Proper FHS-compliant directory layout
- Cross-compilation support via compiler variables

This modernization enables hfsutils to work with standard Unix build
tools and package managers while maintaining full backward compatibility.
2025-10-21 17:20:43 -03:00
Pablo Lezaeta Reyes 3db5925bfe Status of updateabilition for hfsck 2025-10-20 22:24:51 -03:00
Pablo Lezaeta Reyes 2d47454ca4 add -Werror 2025-10-20 21:29:30 -03:00
Pablo Lezaeta Reyes 476cfb9f39 build: 2025-10-20 20:54:31 -03:00
Pablo Lezaeta Reyes 71b2a557f7 added the respective files 2025-10-14 23:26:26 -03:00
Pablo Lezaeta Reyes 3e2dda921b An small mistake i did earlier whe i tried to update the README... still a wip anyways 2025-10-14 23:16:55 -03:00
Andrea Rogers 21d0d418e3 autoconf: Generate libhfs and librsrc Makefiles 2024-06-28 20:53:04 -05:00
Andrea Rogers 0e079e8ff0 automake: Create .stamp directory for reasons
Might rework in the future to get rid of silly hacky thing...
2024-06-28 20:36:11 -05:00
Andrea Rogers d983eb6ee9 We configure.ac now 2024-06-28 20:28:42 -05:00
Andrea Rogers 8af7cee4a8 autoconf: rm AC_REQUIRE(AC_PROG_CC) and more warnings
We're getting closer to these macros actually working!! 😻

The generated ./configure now runs without any errors, but it looks like
it's time to set my sights on de-crustifying the Automake stuffs...
2024-06-28 20:17:54 -05:00
Andrea Rogers 55c7d8a76f configure.ac: Trad is bad 2024-06-23 07:19:15 -05:00
Andrea Rogers 14f09fbfa2 rm all config.h.in files, rm configure.ac cruft 2024-06-23 07:03:37 -05:00
Pablo Lezaeta Reyes 60d1b2c293 Initial import from https://www.mars.org/home/rob/proj/hfs/
Signed-off-by: Pablo Lezaeta Reyes <prflr88@gmail.com>
2017-09-27 00:10:03 -03:00