Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.25 KB

File metadata and controls

54 lines (45 loc) · 1.25 KB

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