forked from ziobron/modern_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (23 loc) · 696 Bytes
/
Makefile
File metadata and controls
35 lines (23 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CC=g++
CFLAGS=-c
LDFLAGS=
SOURCES=main.cpp Circle.cpp Rectangle.cpp Shape.cpp Square.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=engage
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@ -Iincludes
#main.o: main.cpp
# $(CC) $(CFLAGS) main.cpp -Iincludes
#Circle.o: Circle.cpp includes/Circle.hpp
# $(CC) $(CFLAGS) Circle.cpp -Iincludes
#Rectangle.o: Rectangle.cpp includes/Rectangle.hpp
# $(CC) $(CFLAGS) Rectangle.cpp -Iincludes
#Shape.o: Shape.cpp includes/Shape.hpp
# $(CC) $(CFLAGS) Shape.cpp -Iincludes
#Square.o: Square.cpp includes/Square.hpp
# $(CC) $(CFLAGS) Square.cpp -Iincludes
clean:
rm *o engage