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