blob: bacdef9bb096dce60ccbc979331d90f85f90b366 [file] [log] [blame]
Chris Austen4d98c1e2015-10-13 14:33:50 -05001CXX ?= $(CROSS_COMPILE)g++
2
3LIB_OEM_OBJ = oemhandler.o
4LIB_OEM = liboemhandler.so
5
6LDFLAGS += -rdynamic -ldl
7CXXFLAGS += -fPIC -Wall
8
9
Chris Austenfcafccf2016-02-19 23:15:57 -060010all: $(LIB_OEM)
Chris Austen4d98c1e2015-10-13 14:33:50 -050011
12%.o: %.C
Adriana Kobylak187bfce2016-03-04 11:55:43 -060013 $(CXX) -std=c++14 -c $< $(CXXFLAGS) -o $@
Chris Austen4d98c1e2015-10-13 14:33:50 -050014
Chris Austen4d98c1e2015-10-13 14:33:50 -050015$(LIB_OEM): $(LIB_OEM_OBJ)
16 $(CXX) $^ -shared $(LDFLAGS) -o $@
17
18clean:
Chris Austenfcafccf2016-02-19 23:15:57 -060019 $(RM) $(LIB_OEM_OBJ) $(LIB_OEM)