From b5e58fa40886628a14a429e728c62c4c3cdb644f Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 21 Oct 2020 13:24:57 +0000 Subject: [PATCH] Moved headers into main folder as project has a simple structure --- Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cdddcb0..548e7b4 100644 --- a/Makefile +++ b/Makefile @@ -2,19 +2,19 @@ _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 DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS)) OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ)) -default: a.out +default: dnscomp %.o: %c $(DEPS) $(CC) $(CFLAGS) -c -o $@ $< -a.out: $(_OBJ) +dnscomp: $(_OBJ) $(CC) $(CFLAGS) -o $@ $^ .PHONY: clean -- Gitblit v1.10.0