mirror of https://github.com/Chizi123/dnscomp.git

Joel Grunbaum
2022-05-23 ab157baf15984b6e967c3fadf9784e3a7c92fc36
Allow for dev build and release build
1 files modified
12 ■■■■ changed files
Makefile 12 ●●●● patch | view | raw | blame | history
Makefile
@@ -1,13 +1,13 @@
CC=gcc
_OBJ=main.o dns.o slist.o
_DEPS=dns.h servers.h slist.h
IDIR=include
CFLAGS=-Wall -g -lpthread
ODIR=obj
SRCDIR=src
CFLAGS=-Wall -lpthread
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
ifeq ($(DEV),1)
    CFLAGS += -g
else
    CFLAGS += -O2 -flto
endif
default: dnscomp