blob: 2c03541a0c56a81bca825931e0176be97f15b52a [file] [log] [blame]
CXX ?= $(CROSS_COMPILE)g++
LIB_OEM_OBJ = oemhandler.o
LIB_OEM = liboemhandler.so
LDFLAGS += -rdynamic -ldl
CXXFLAGS += -fPIC -Wall -Werror
all: $(LIB_OEM)
%.o: %.C
$(CXX) -std=c++14 -c $< $(CXXFLAGS) -o $@
$(LIB_OEM): $(LIB_OEM_OBJ)
$(CXX) $^ -shared $(LDFLAGS) -o $@
clean:
$(RM) $(LIB_OEM_OBJ) $(LIB_OEM)