mirror of
https://github.com/opus-tango/http-server-in-c.git
synced 2026-03-19 19:52:51 +00:00
disable debug level logs on make release
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user