From 47fc92eabc296f9232de40ba33be9c2931613c57 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Thu, 22 Oct 2020 00:30:17 +0000 Subject: [PATCH] reordered makefile for linking compatibility, cast const to remove warning --- Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 582a31d..420b74c 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ _OBJ=main.o dns.o slist.o _DEPS=dns.h servers.h slist.h IDIR=include -CFLAGS=-I$(IDIR) -Wall -g -lpthread +CFLAGS=-Wall -g -lpthread ODIR=obj SRCDIR=src @@ -12,10 +12,10 @@ default: dnscomp %.o: %c $(DEPS) - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) -c -o $@ $< $(CFLAGS) dnscomp: $(_OBJ) - $(CC) $(CFLAGS) -o $@ $^ + $(CC) -o $@ $^ $(CFLAGS) .PHONY: clean clean: -- Gitblit v1.10.0