4934bd6f24
Change-Id: I94d0f67cfd0d636407cd9cf3afbe0db4064de28e
18 lines
365 B
Makefile
18 lines
365 B
Makefile
AR=ar
|
|
INCLUDE=../include
|
|
CXXFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c++11 -g -fPIC -D_XOPEN_SOURCE=700 -I$(INCLUDE)
|
|
LDFLAGS=`pkg-config --libs libusb-1.0` -fPIC -lpthread
|
|
LIB=libhwstub.a
|
|
SRC=$(wildcard *.cpp)
|
|
OBJ=$(SRC:.cpp=.o)
|
|
|
|
all: $(LIB)
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
$(LIB): $(OBJ)
|
|
$(AR) rcs $@ $^
|
|
|
|
clean:
|
|
rm -rf $(OBJ) $(LIB)
|