jw-pkg/make/plugin-version.mk
Jan Lindemann 58ab619f0b make: Rename CFLAGS, CXXFLAGS and CPPFLAGS variables
Rename CFLAGS and friends to follow the conventions of the implicit rules
defined by GNU Make:

 - $(CPPFLAGS) is passed to both C++ and C compiler
 - $(CXXFLAGS) is passed to C++ compiler only
 - $(CFLAGS) is passed to C compiler only
 - C++ compiler is in $(CXX)

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-19 07:07:00 +00:00

17 lines
331 B
Makefile

include $(MODDIR)/make/plugin-defs.mk
include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/defs-cpp.mk
all: $(PLUGIN_VERSION_LIB)
install:
clean: clean.local
distclean:
version.o: version.cpp
$(CXX) $(BUILD_CXXFLAGS) $(BUILD_CPPFLAGS) -o $@ -c $<
clean.local:
$(RM) -f version.o
$(PLUGIN_VERSION_LIB): version.o
ar r $@ $<