blob: eaa7324938cad9fa76ed82d7ac77af749f1e73cb [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
13 $(CXX) -c $< $(CXXFLAGS) -o $@
14
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)