Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@ TARGET = coolerdash

# Directories
SRCDIR = src
INCDIR = include
OBJDIR = build
BINDIR = bin

# Source code files
MAIN_SOURCE = $(SRCDIR)/main.c
SRC_MODULES = $(SRCDIR)/config.c $(SRCDIR)/coolercontrol.c $(SRCDIR)/display.c $(SRCDIR)/monitor.c
HEADERS = $(INCDIR)/config.h $(INCDIR)/coolercontrol.h $(INCDIR)/display.h $(INCDIR)/monitor.h
HEADERS = $(SRCDIR)/config.h $(SRCDIR)/coolercontrol.h $(SRCDIR)/display.h $(SRCDIR)/monitor.h
OBJECTS = $(patsubst $(SRCDIR)/%.c,$(OBJDIR)/%.o,$(SRC_MODULES))

SERVICE = etc/systemd/coolerdash.service
Expand Down
4 changes: 2 additions & 2 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
// cppcheck-suppress-end missingIncludeSystem

// Include project headers
#include "../include/config.h"
#include "../include/coolercontrol.h"
#include "config.h"
#include "coolercontrol.h"

/**
* @brief Global logging implementation for all modules except main.c
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/coolercontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
// cppcheck-suppress-end missingIncludeSystem

// Include project headers
#include "../include/config.h"
#include "../include/coolercontrol.h"
#include "config.h"
#include "coolercontrol.h"

/**
* @brief Secure string copy with bounds checking.
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
// cppcheck-suppress-end missingIncludeSystem

// Include project headers
#include "../include/config.h"
#include "../include/display.h"
#include "../include/coolercontrol.h"
#include "../include/monitor.h"
#include "config.h"
#include "display.h"
#include "coolercontrol.h"
#include "monitor.h"

/**
* @brief Convert color component to cairo format.
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
// cppcheck-suppress-end missingIncludeSystem

// Include project headers
#include "../include/config.h"
#include "../include/coolercontrol.h"
#include "../include/display.h"
#include "../include/monitor.h"
#include "config.h"
#include "coolercontrol.h"
#include "display.h"
#include "monitor.h"

// Security and performance constants
#define DEFAULT_VERSION "unknown"
Expand Down
6 changes: 3 additions & 3 deletions src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
// cppcheck-suppress-end missingIncludeSystem

// Include project headers
#include "../include/config.h"
#include "../include/monitor.h"
#include "../include/coolercontrol.h"
#include "config.h"
#include "monitor.h"
#include "coolercontrol.h"

/**
* @brief Extract temperature from device status history
Expand Down
File renamed without changes.