mirror of
https://github.com/opus-tango/http-server-in-c.git
synced 2026-03-20 03:55:25 +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
|
# Compiler and flags
|
||||||
CC = gcc
|
CC = gcc
|
||||||
DEBUG_FLAGS = -g -Wall -Wextra
|
DEBUG_FLAGS = -g -Wall -Wextra
|
||||||
RELEASE_FLAGS = -Wall -Wextra
|
RELEASE_FLAGS = -Wall -Wextra -DNDEBUG
|
||||||
LFLAGS = -lpthread
|
LFLAGS = -lpthread
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
|
|||||||
@@ -19,7 +19,12 @@
|
|||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
|
|
||||||
struct sockaddr_in server_addr;
|
struct sockaddr_in server_addr;
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
#define DEBUG 1
|
#define DEBUG 1
|
||||||
|
#else
|
||||||
|
#define DEBUG 0
|
||||||
|
#endif
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
open_log_file();
|
open_log_file();
|
||||||
|
|||||||
Reference in New Issue
Block a user