aboutsummaryrefslogtreecommitdiff
path: root/unit_tests
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 09:23:23 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 09:23:23 +0100
commit536a64557c82c350fd73ea64c6d4dd1737896579 (patch)
treed90e1f2ba846090be20242925182ee5208828e15 /unit_tests
parentc39cb92325ba7280dae175ec5a32a97d0668981e (diff)
downloadlanes-536a64557c82c350fd73ea64c6d4dd1737896579.tar.gz
lanes-536a64557c82c350fd73ea64c6d4dd1737896579.tar.bz2
lanes-536a64557c82c350fd73ea64c6d4dd1737896579.zip
More makefile tweaks
Diffstat (limited to 'unit_tests')
-rw-r--r--unit_tests/UnitTests.makefile14
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
5include ../Shared.makefile 5include ../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#---
15all: $(_UNITTEST_TARGET) 14all: $(_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
30clean: 30clean:
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