disable debug level logs on make release

This commit is contained in:
Nayan
2025-05-09 12:57:47 -04:00
parent ce4cf5f5cc
commit 7073224598
2 changed files with 6 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# Compiler and flags
CC = gcc
DEBUG_FLAGS = -g -Wall -Wextra
RELEASE_FLAGS = -Wall -Wextra
RELEASE_FLAGS = -Wall -Wextra -DNDEBUG
LFLAGS = -lpthread
# Source files

View File

@@ -19,7 +19,12 @@
#include "logging.h"
struct sockaddr_in server_addr;
#ifndef NDEBUG
#define DEBUG 1
#else
#define DEBUG 0
#endif
int main() {
open_log_file();