-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 822 Bytes
/
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
CXX = g++
CXXFLAGS = -g -Wall
# Add any new .h and .inl files to the INCLUDES definition below:
INCLUDES1 = largeNum.h largeNum2.h
INCLUDES2 = largeNum2.h
# If you create any new non-templated classes, add an appropriate .o file
# to the OBJECTS definition below:
OBJECTS = largeNum.o largeNum2.o
# If you create a new test program, add the name of the test program
# to the PROGRAMS definition below and then create a rule for that program
PROGRAMS = test sumPower
all: $(PROGRAMS)
test: $(INCLUDES) largeNum.cc largeNum2.cc test.cc
$(CXX) $(CXXFLAGS) largeNum.cc largeNum2.cc [email protected] -Wall -o $@
sumPower: sumPower.cc
$(CXX) $(CXXFLAGS) sumPower.cc -Wall -o $@
#test: test.cc largeNum.o
# $(CXX) $(CXXFLAGS) test.cc -o $@
%.o: %.cc %.h
$(CXX) $(CXXFLAGS) -c $<
clean:
rm -f *.o $(PROGRAMS)
.PHONY: all clean