2 # Makefile for carla-widgets #
3 # -------------------------- #
8 include $(CWD
)/Makefile.mk
10 # ---------------------------------------------------------------------------------------------------------------------
12 BINDIR
:= $(CWD
)/..
/bin
15 OBJDIR
:= $(CWD
)/..
/build
/widgets
/Debug
16 MODULEDIR
:= $(CWD
)/..
/build
/modules
/Debug
18 OBJDIR
:= $(CWD
)/..
/build
/widgets
/Release
19 MODULEDIR
:= $(CWD
)/..
/build
/modules
/Release
22 # ---------------------------------------------------------------------------------------------------------------------
24 BUILD_CXX_FLAGS
+= -I.
-I
$(CWD
)/includes
-I
$(CWD
)/modules
-I
$(CWD
)/utils
26 ifeq ($(HAVE_QT4
),true
)
27 BUILD_CXX_FLAGS
+= $(shell pkg-config
--cflags QtCore QtGui
)
28 LINK_FLAGS
+= $(shell pkg-config
--libs QtCore QtGui
)
30 BUILD_CXX_FLAGS
+= $(shell pkg-config
--cflags Qt5Core Qt5Gui Qt5Widgets
)
31 LINK_FLAGS
+= $(shell pkg-config
--libs Qt5Core Qt5Gui Qt5Widgets
)
34 # ---------------------------------------------------------------------------------------------------------------------
37 # moc_paramspinbox.cpp \
38 # moc_pixmapkeyboard.cpp
41 $(OBJDIR
)/digitalpeakmeter.
cpp.o
44 # paramspinbox.cpp.o \
46 # pixmapkeyboard.cpp.o
49 # moc_paramspinbox.cpp.o \
50 # moc_pixmapkeyboard.cpp.o
52 TARGET
= $(MODULEDIR
)/widgets.a
54 # ---------------------------------------------------------------------------------------------------------------------
58 # ---------------------------------------------------------------------------------------------------------------------
61 rm -f
$(OBJDIR
)/*.o
$(TARGET
)
66 # ---------------------------------------------------------------------------------------------------------------------
68 $(MODULEDIR
)/widgets.a
: $(FILES
) $(OBJS
)
72 # ---------------------------------------------------------------------------------------------------------------------
74 $(OBJDIR
)/%.
cpp.o
: %.
cpp
77 $(CXX
) $< $(BUILD_CXX_FLAGS
) -c
-o
$@
79 -include $(OBJS
:%.o
=%.d
)
82 # $(CXX) moc_$< $(BUILD_CXX_FLAGS) -c -o $@
87 # ---------------------------------------------------------------------------------------------------------------------