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 /deep_userdata_example | |
parent | c39cb92325ba7280dae175ec5a32a97d0668981e (diff) | |
download | lanes-536a64557c82c350fd73ea64c6d4dd1737896579.tar.gz lanes-536a64557c82c350fd73ea64c6d4dd1737896579.tar.bz2 lanes-536a64557c82c350fd73ea64c6d4dd1737896579.zip |
More makefile tweaks
Diffstat (limited to 'deep_userdata_example')
-rw-r--r-- | deep_userdata_example/DUE.makefile | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/deep_userdata_example/DUE.makefile b/deep_userdata_example/DUE.makefile index 8fcc89e..b5c3a23 100644 --- a/deep_userdata_example/DUE.makefile +++ b/deep_userdata_example/DUE.makefile | |||
@@ -4,33 +4,33 @@ | |||
4 | 4 | ||
5 | include ../Shared.makefile | 5 | include ../Shared.makefile |
6 | 6 | ||
7 | _MODULE=deep_userdata_example.$(_SO) | 7 | _TARGET := deep_userdata_example.$(_SO) |
8 | 8 | ||
9 | _SRC:=$(wildcard *.cpp) ../src/compat.cpp ../src/deep.cpp | 9 | _SRC := $(wildcard *.cpp) ../src/compat.cpp ../src/deep.cpp |
10 | 10 | ||
11 | _OBJ:=$(_SRC:.cpp=.o) | 11 | _OBJ := $(_SRC:.cpp=.o) |
12 | 12 | ||
13 | #--- | 13 | #--- |
14 | all: $(_MODULE) | 14 | all: $(_TARGET) |
15 | $(info CC: $(CC)) | 15 | $(info CC: $(CC)) |
16 | $(info _MODULE: $(_MODULE)) | 16 | $(info _TARGET: $(_TARGET)) |
17 | $(info _SRC: $(_SRC)) | 17 | $(info _SRC: $(_SRC)) |
18 | 18 | ||
19 | _pch.hpp.gch: ../src/_pch.hpp | 19 | _pch.hpp.gch: ../src/_pch.hpp |
20 | $(CC) -I "../.." $(CFLAGS) -x c++-header $< -o _pch.hpp.gch | 20 | $(CC) -I "../.." $(CFLAGS) -x c++-header $< -o _pch.hpp.gch |
21 | 21 | ||
22 | %.o: %.cpp _pch.hpp.gch DUE.makefile | 22 | %.o: %.cpp _pch.hpp.gch DUE.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 | $(_MODULE): $(_OBJ) | 27 | $(_TARGET): $(_OBJ) |
28 | $(CC) $(LIBFLAG) $^ $(LIBS) $(LUA_LIBS) -o $@ | 28 | $(CC) $(LIBFLAG) $^ $(LIBS) $(LUA_LIBS) -o $@ |
29 | 29 | ||
30 | install: | 30 | install: |
31 | install -m 644 $(_MODULE) $(LUA_LIBDIR)/ | 31 | install -m 644 $(_TARGET) $(LUA_LIBDIR)/ |
32 | 32 | ||
33 | clean: | 33 | clean: |
34 | -rm -rf $(_MODULE) *.o *.map *.gch | 34 | -rm -rf $(_TARGET) *.o *.map *.gch |
35 | 35 | ||
36 | .PHONY: all clean | 36 | .PHONY: all clean |