Chris Austen | 4d98c1e | 2015-10-13 14:33:50 -0500 | [diff] [blame] | 1 | CXX ?= $(CROSS_COMPILE)g++ |
| 2 | |
| 3 | LIB_OEM_OBJ = oemhandler.o |
| 4 | LIB_OEM = liboemhandler.so |
| 5 | |
| 6 | LDFLAGS += -rdynamic -ldl |
| 7 | CXXFLAGS += -fPIC -Wall |
| 8 | |
| 9 | |
Chris Austen | fcafccf | 2016-02-19 23:15:57 -0600 | [diff] [blame] | 10 | all: $(LIB_OEM) |
Chris Austen | 4d98c1e | 2015-10-13 14:33:50 -0500 | [diff] [blame] | 11 | |
| 12 | %.o: %.C |
Adriana Kobylak | 187bfce | 2016-03-04 11:55:43 -0600 | [diff] [blame] | 13 | $(CXX) -std=c++14 -c $< $(CXXFLAGS) -o $@ |
Chris Austen | 4d98c1e | 2015-10-13 14:33:50 -0500 | [diff] [blame] | 14 | |
Chris Austen | 4d98c1e | 2015-10-13 14:33:50 -0500 | [diff] [blame] | 15 | $(LIB_OEM): $(LIB_OEM_OBJ) |
| 16 | $(CXX) $^ -shared $(LDFLAGS) -o $@ |
| 17 | |
| 18 | clean: |
Chris Austen | fcafccf | 2016-02-19 23:15:57 -0600 | [diff] [blame] | 19 | $(RM) $(LIB_OEM_OBJ) $(LIB_OEM) |