mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 20:32:15 +00:00
Move the code into a header file
This commit is contained in:
parent
7832dd745c
commit
e8cfd96ccf
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
# Points to the root of Google Test, relative to where this file is.
|
# Points to the root of Google Test, relative to where this file is.
|
||||||
# Remember to tweak this if you move this file.
|
# Remember to tweak this if you move this file.
|
||||||
GTEST_DIR = gtest
|
GTEST_DIR = ../../../googletest
|
||||||
|
|
||||||
# Where to find user code.
|
# Where to find user code.
|
||||||
USER_DIR = .
|
USER_DIR = .
|
||||||
@ -67,9 +67,9 @@ gtest_main.a : gtest-all.o gtest_main.o
|
|||||||
# gtest_main.a, depending on whether it defines its own main()
|
# gtest_main.a, depending on whether it defines its own main()
|
||||||
# function.
|
# function.
|
||||||
|
|
||||||
GildedRose.o : $(USER_DIR)/GildedRose.cc \
|
#GildedRose.o : $(USER_DIR)/GildedRose.h \
|
||||||
$(GTEST_HEADERS)
|
# $(GTEST_HEADERS)
|
||||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/GildedRose.cc
|
# $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/GildedRose.h
|
||||||
|
|
||||||
GildedRose : GildedRose.o gtest_main.a
|
GildedRose : GildedRose.h gtest_main.a
|
||||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -pthread $^ -o $@
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(USER_DIR)/GildedRose.h -pthread $^ -o $@
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user