blob: 2c03541a0c56a81bca825931e0176be97f15b52a [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
Matthew Barthe74fc6b2016-08-29 14:57:54 -05007CXXFLAGS += -fPIC -Wall -Werror
Chris Austen4d98c1e2015-10-13 14:33:50 -05008
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)