Project finished
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
NAME = animals
|
||||
|
||||
SRCS = main.cpp Animal/Animal.cpp Dog/Dog.cpp Cat/Cat.cpp
|
||||
SRCS = main.cpp Animal/Animal.cpp Dog/Dog.cpp Cat/Cat.cpp \
|
||||
WrongAnimal/WrongAnimal.cpp WrongCat/WrongCat.cpp
|
||||
|
||||
OBJS = $(SRCS:.cpp=.o)
|
||||
|
||||
CC = c++
|
||||
@@ -11,8 +13,8 @@ all: $(NAME)
|
||||
$(NAME): $(OBJS)
|
||||
$(CC) $(CFLAGS) $(OBJS) -o $(NAME)
|
||||
|
||||
%.o: %cpp
|
||||
$(CC) $(CFLAGS) -c $@ -o $<
|
||||
%.o: %.cpp
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS)
|
||||
|
||||
Reference in New Issue
Block a user