Remove juce completely, cleanup
[carla.git] / source / rest / Makefile
blob94afa2cbebf553262183b3c233577530bc898294
1 #!/usr/bin/make -f
2 # Makefile for carla-interposer #
3 # ----------------------------- #
4 # Created by falkTX
7 CWD=..
8 include $(CWD)/Makefile.mk
10 # ----------------------------------------------------------------------------------------------------------------------
12 BINDIR := $(CWD)/../bin
14 ifeq ($(DEBUG),true)
15 OBJDIR := $(CWD)/../build/interposer/Debug
16 MODULEDIR := $(CWD)/../build/modules/Debug
17 else
18 OBJDIR := $(CWD)/../build/interposer/Release
19 MODULEDIR := $(CWD)/../build/modules/Release
20 endif
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 # ----------------------------------------------------------------------------------------------------------------------
38 all: $(TARGETS)
40 # ----------------------------------------------------------------------------------------------------------------------
42 clean:
43 rm -f $(OBJDIR)/*.o $(TARGETS)
45 debug:
46 $(MAKE) DEBUG=true
48 # ----------------------------------------------------------------------------------------------------------------------
50 $(BINDIR)/carla-rest-server: $(OBJS)
51 -@mkdir -p $(BINDIR)
52 @echo "Linking carla-rest-server"
53 $(SILENT)$(CXX) $^ $(LINK_FLAGS) -o $@
55 # ----------------------------------------------------------------------------------------------------------------------
57 $(OBJDIR)/%.cpp.o: %.cpp
58 -@mkdir -p $(OBJDIR)
59 @echo "Compiling $<"
60 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
62 # ----------------------------------------------------------------------------------------------------------------------
64 -include $(OBJS:%.o=%.d)
66 # ----------------------------------------------------------------------------------------------------------------------