-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
39 lines (28 loc) · 1.06 KB
/
Makefile
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
34
35
36
37
38
39
EXECUTABLE=NotPOSPOS
CXX=g++
all: main.o order.o item.o registerController.o StoreInventory.o \
cashierView.o customerView.o keypadController.o ObserverPattern.o
$(CXX) main.o order.o item.o registerController.o StoreInventory.o \
cashierView.o customerView.o keypadController.o ObserverPattern.o \
-o $(EXECUTABLE)
main.o: main.cpp item.h order.h
@$(CXX) -c main.cpp
order.o: order.h order.cpp IOrder.h
@$(CXX) -c order.cpp
item.o: item.h item.cpp IItem.h
@$(CXX) -c item.cpp
registerController.o: StoreInventory.o cashierView.o order.o item.o \
item.o registerController.h registerController.cpp
@$(CXX) -c registerController.cpp
keypadController.o: customerView.o order.o keypadController.h keypadController.cpp
@$(CXX) -c keypadController.cpp
StoreInventory.o: StoreInventory.h StoreInventory.cpp
@$(CXX) -c StoreInventory.cpp
cashierView.o: cashierView.h cashierView.cpp
@$(CXX) -c cashierView.cpp
customerView.o: customerView.h customerView.cpp
@$(CXX) -c customerView.cpp
ObserverPattern.o:
$(CXX) -c ObserverPattern.cpp
clean:
rm -f *.o *.gch $(EXECUTABLE)