2 # Makefile for sfzero #
3 # ------------------- #
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_CXX_FLAGS
+= -I
$(CWD
)/modules
17 BUILD_CXX_FLAGS
+= -pthread
21 # ---------------------------------------------------------------------------------------------------------------------
23 OBJS
= $(OBJDIR
)/SFZero.
cpp.o
25 # ---------------------------------------------------------------------------------------------------------------------
27 all: $(MODULEDIR
)/$(MODULENAME
).a
29 # ---------------------------------------------------------------------------------------------------------------------
32 rm -f
$(OBJDIR
)/*.o
$(MODULEDIR
)/$(MODULENAME
)*.a
37 # ---------------------------------------------------------------------------------------------------------------------
39 $(MODULEDIR
)/$(MODULENAME
).a
: $(OBJS
)
40 -@mkdir
-p
$(MODULEDIR
)
41 @echo
"Creating $(MODULENAME).a"
43 $(SILENT
)$(AR
) crs
$@
$^
45 # ---------------------------------------------------------------------------------------------------------------------
47 $(OBJDIR
)/%.
cpp.o
: %.
cpp
50 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -c
-o
$@
52 -include $(OBJS
:%.o
=%.d
)
54 # ---------------------------------------------------------------------------------------------------------------------