Source Code Structure Proposal Current Structure simple-ntpd/ ├── include/simple-ntpd/ │ └── [various headers] ├── src/simple-ntpd/ # Implementation └── CMakeLists.txt # Single build configuration Proposed Structure Modular Directory Structure (Recommended) simple-ntpd/ ├── src/ │ ├── core/ # Shared core (Production base) │ │ ├── ntp/ │ │ ├── config/ │ │ └── utils/ │ ├── production/ # Production-specific features │ ├── enterprise/ # Enterprise-specific features │ └── datacenter/ # Datacenter-specific features ├── include/ │ └── simple-ntpd/ │ ├── core/ │ ├── production/ │ ├── enterprise/ │ └── datacenter/ ├── main/ │ ├── production.cpp │ ├── enterprise.cpp │ └── datacenter.cpp └── CMakeLists.txt # Version-aware build Build Commands # Build Production cmake -DBUILD_VERSION=production .. make # Build Enterprise cmake -DBUILD_VERSION=enterprise .. make # Build Datacenter cmake -DBUILD_VERSION=datacenter .. make