diff options
Diffstat (limited to 'unit_tests/UnitTests.makefile')
-rw-r--r-- | unit_tests/UnitTests.makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unit_tests/UnitTests.makefile b/unit_tests/UnitTests.makefile index b3d1c58..a383516 100644 --- a/unit_tests/UnitTests.makefile +++ b/unit_tests/UnitTests.makefile | |||
@@ -4,30 +4,30 @@ | |||
4 | 4 | ||
5 | include ../Shared.makefile | 5 | include ../Shared.makefile |
6 | 6 | ||
7 | _TARGET := UnitTests$(_LUAEXT) | ||
8 | |||
7 | _SRC := $(wildcard *.cpp) ../src/deep.cpp ../src/compat.cpp | 9 | _SRC := $(wildcard *.cpp) ../src/deep.cpp ../src/compat.cpp |
8 | 10 | ||
9 | _OBJ := $(_SRC:.cpp=.o) | 11 | _OBJ := $(_SRC:.cpp=.o) |
10 | 12 | ||
11 | |||
12 | _UNITTEST_TARGET := UnitTests$(_LUAEXT) | ||
13 | |||
14 | #--- | 13 | #--- |
15 | all: $(_UNITTEST_TARGET) | 14 | all: $(_TARGET) |
16 | $(info CC: $(CC)) | 15 | $(info CC: $(CC)) |
16 | $(info _TARGET: $(_TARGET)) | ||
17 | $(info _SRC: $(_SRC)) | 17 | $(info _SRC: $(_SRC)) |
18 | 18 | ||
19 | _pch.hpp.gch: _pch.hpp | 19 | _pch.hpp.gch: _pch.hpp |
20 | $(CC) -I "../.." $(CFLAGS) -x c++-header _pch.hpp -o _pch.hpp.gch | 20 | $(CC) -I "../.." $(CFLAGS) -x c++-header _pch.hpp -o _pch.hpp.gch |
21 | 21 | ||
22 | %.o: %.cpp _pch.hpp.gch *.h *.hpp UnitTests.makefile | 22 | %.o: %.cpp _pch.hpp.gch *.h *.hpp UnitTests.makefile |
23 | $(CC) -I "../.." $(CFLAGS) -c $< | 23 | $(CC) -I "../.." $(CFLAGS) -c $< -o $@ |
24 | 24 | ||
25 | # Note: Don't put $(LUA_LIBS) ahead of $^; MSYS will not like that (I think) | 25 | # Note: Don't put $(LUA_LIBS) ahead of $^; MSYS will not like that (I think) |
26 | # | 26 | # |
27 | $(_UNITTEST_TARGET): $(_OBJ) | 27 | $(_TARGET): $(_OBJ) |
28 | $(CC) $^ $(LIBS) $(LUA_LIBS) -o $@ | 28 | $(CC) $^ $(LIBS) $(LUA_LIBS) -o $@ |
29 | 29 | ||
30 | clean: | 30 | clean: |
31 | -rm -rf $(_UNITTEST_TARGET) *.o *.map *.gch | 31 | -rm -rf $(_TARGET) *.o *.map *.gch |
32 | 32 | ||
33 | .PHONY: all clean | 33 | .PHONY: all clean |