diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 09:23:23 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 09:23:23 +0100 |
| commit | 536a64557c82c350fd73ea64c6d4dd1737896579 (patch) | |
| tree | d90e1f2ba846090be20242925182ee5208828e15 /unit_tests | |
| parent | c39cb92325ba7280dae175ec5a32a97d0668981e (diff) | |
| download | lanes-536a64557c82c350fd73ea64c6d4dd1737896579.tar.gz lanes-536a64557c82c350fd73ea64c6d4dd1737896579.tar.bz2 lanes-536a64557c82c350fd73ea64c6d4dd1737896579.zip | |
More makefile tweaks
Diffstat (limited to 'unit_tests')
| -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 |
