remove weird directory structure :P

This commit is contained in:
Kied Llaentenn 2019-12-12 18:53:07 -05:00
parent 4ed14729d8
commit 43f70b7c90

View File

@ -8,7 +8,6 @@ NAME = fire
WARNING = -Wall -Wextra -pedantic -Wmissing-prototypes \ WARNING = -Wall -Wextra -pedantic -Wmissing-prototypes \
-Wold-style-definition -Werror -Wold-style-definition -Werror
SRCDIR = src
SUBDIR = sub SUBDIR = sub
INC = -I$(SUBDIR)/termbox_next/ INC = -I$(SUBDIR)/termbox_next/
@ -23,14 +22,14 @@ OBJ = $(SRC:.c=.o)
all: $(NAME) all: $(NAME)
clean: clean:
rm -f $(SRCDIR)/$(NAME) $(SRCDIR)/$(OBJ) rm -f $(NAME) $(OBJ)
.c.o: .c.o:
@echo "\tCC\t\t$@" @echo "\tCC\t\t$@"
@$(CC) $(CFLAGS) -c $< -o $@ @$(CC) $(CFLAGS) -c $<
$(NAME): $(SRCDIR)/$(OBJ) $(NAME): $(OBJ)
@echo "\tLD\t\t$(NAME)" @echo "\tLD\t\t$(NAME)"
@$(CC) -o $(SRCDIR)/$@ $^ $(CFLAGS) $(LDFLAGS) @$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
.PHONY: all clean .PHONY: all clean