1CXX ?= g++ 2CPPFLAGS += -I../include -I./include -I../rmidevice 3CXXFLAGS += -Wall 4LDFLAGS += -L. 5LIBS = -lrmidevice -lrt 6LIBDIR = ../rmidevice 7LIBNAME = librmidevice.a 8F54TESTSRC = main.cpp f54test.cpp testutil.cpp display.cpp 9F54TESTOBJ = $(F54TESTSRC:.cpp=.o) 10PROGNAME = f54test 11STATIC_BUILD ?= y 12ifeq ($(STATIC_BUILD),y) 13LDFLAGS += -static 14endif 15 16all: $(PROGNAME) 17 18$(PROGNAME): $(F54TESTOBJ) 19 $(CXX) $(CXXFLAGS) $(LDFLAGS) $(F54TESTOBJ) -L$(LIBDIR) $(LIBS) -o $(PROGNAME) 20 21clean: 22 rm -f $(F54TESTOBJ) $(PROGNAME) 23