From 43f70b7c903536edc6ff8237163a7476583751c9 Mon Sep 17 00:00:00 2001 From: Kied Llaentenn <32681240+Kiedtl@users.noreply.github.com> Date: Thu, 12 Dec 2019 18:53:07 -0500 Subject: [PATCH] remove weird directory structure :P --- makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index a7914fd..e119d2d 100644 --- a/makefile +++ b/makefile @@ -8,7 +8,6 @@ NAME = fire WARNING = -Wall -Wextra -pedantic -Wmissing-prototypes \ -Wold-style-definition -Werror -SRCDIR = src SUBDIR = sub INC = -I$(SUBDIR)/termbox_next/ @@ -23,14 +22,14 @@ OBJ = $(SRC:.c=.o) all: $(NAME) clean: - rm -f $(SRCDIR)/$(NAME) $(SRCDIR)/$(OBJ) + rm -f $(NAME) $(OBJ) .c.o: @echo "\tCC\t\t$@" - @$(CC) $(CFLAGS) -c $< -o $@ + @$(CC) $(CFLAGS) -c $< -$(NAME): $(SRCDIR)/$(OBJ) +$(NAME): $(OBJ) @echo "\tLD\t\t$(NAME)" - @$(CC) -o $(SRCDIR)/$@ $^ $(CFLAGS) $(LDFLAGS) + @$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) .PHONY: all clean