mirror of
https://github.com/kiedtl/fire.git
synced 2024-12-22 06:06:40 +00:00
remove weird directory structure :P
This commit is contained in:
parent
4ed14729d8
commit
43f70b7c90
9
makefile
9
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
|
||||
|
Loading…
Reference in New Issue
Block a user