2 # Makefile for carla-interposer #
3 # ----------------------------- #
8 include $(CWD
)/Makefile.mk
10 # ----------------------------------------------------------------------------------------------------------------------
12 BINDIR
:= $(CWD
)/..
/bin
15 OBJDIR
:= $(CWD
)/..
/build
/interposer
/Debug
16 MODULEDIR
:= $(CWD
)/..
/build
/modules
/Debug
18 OBJDIR
:= $(CWD
)/..
/build
/interposer
/Release
19 MODULEDIR
:= $(CWD
)/..
/build
/modules
/Release
22 # ----------------------------------------------------------------------------------------------------------------------
24 BUILD_CXX_FLAGS
+= -I
$(CWD
) -I
$(CWD
)/backend
-I
$(CWD
)/includes
-I
$(CWD
)/modules
-I
$(CWD
)/utils
26 LINK_FLAGS
+= -Wl
,-rpath
=$(shell realpath
$(CWD
)/..
/bin
)
27 LINK_FLAGS
+= -L
$(BINDIR
) -lcarla_standalone2
-lcarla_utils
28 LINK_FLAGS
+= -lrestbed
-lssl
-lcrypto
29 LINK_FLAGS
+= -pthread
31 # ----------------------------------------------------------------------------------------------------------------------
33 OBJS
= $(OBJDIR
)/rest-server.
cpp.o
$(OBJDIR
)/buffers.
cpp.o
34 TARGETS
= $(BINDIR
)/carla-rest-server
36 # ----------------------------------------------------------------------------------------------------------------------
40 # ----------------------------------------------------------------------------------------------------------------------
43 rm -f
$(OBJDIR
)/*.o
$(TARGETS
)
48 # ----------------------------------------------------------------------------------------------------------------------
50 $(BINDIR
)/carla-rest-server
: $(OBJS
)
52 @echo
"Linking carla-rest-server"
53 $(SILENT
)$(CXX
) $^
$(LINK_FLAGS
) -o
$@
55 # ----------------------------------------------------------------------------------------------------------------------
57 $(OBJDIR
)/%.
cpp.o
: %.
cpp
60 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -c
-o
$@
62 # ----------------------------------------------------------------------------------------------------------------------
64 -include $(OBJS
:%.o
=%.d
)
66 # ----------------------------------------------------------------------------------------------------------------------