• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CXX ?= g++
2CPPFLAGS += -I../include -I./include -I../rmidevice
3CXXFLAGS += -Wall
4LDFLAGS += -L.
5LIBS =  -lrmidevice
6LIBDIR = ../rmidevice
7LIBNAME = librmidevice.a
8RMIHIDTOOLSRC = main.cpp
9RMIHIDTOOLOBJ = $(RMIHIDTOOLSRC:.cpp=.o)
10PROGNAME = rmihidtool
11STATIC_BUILD ?= y
12ifeq ($(STATIC_BUILD),y)
13LDFLAGS += -static
14endif
15
16all: $(PROGNAME)
17
18$(PROGNAME): $(RMIHIDTOOLOBJ)
19	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(RMIHIDTOOLOBJ) -L$(LIBDIR) $(LIBS) -o $(PROGNAME)
20
21clean:
22	rm -f $(RMIHIDTOOLOBJ) $(PROGNAME)
23