blob: 6c4de84c6004870989890faa1d613298a30da918 [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
10all: $(LIB_OEM)
11
12%.o: %.C
13 $(CXX) -c $< $(CXXFLAGS) -o $@
14
15
16$(LIB_OEM): $(LIB_OEM_OBJ)
17 $(CXX) $^ -shared $(LDFLAGS) -o $@
18
19clean:
20 $(RM) $(LIB_OEM_OBJ) $(LIB_OEM)