# # %name: makefile % # %instance: WIC_3306 % # %version: 1 % # %created_by: dhoyer % # # Copyright 2015 NetApp, Inc. All Rights Reserved. # # Description: # Makefile for the eseries-bios-utils utils # # %date_created: Thu Nov 12 10:46:11 2015 % .PHONY: build install clean test LDLIBS= INC=biosSpi.h biosPlatInfo.h biosLib.h STUB_SO=libstub.so STUB_OBJS=stub.o ### BIOS update start ### UPDATE_SRC= \ biosUpdate.cc \ biosPlatInfo.cc \ biosSpi.cc UPDATE_OBJ=$(UPDATE_SRC:.cc=.o) biosUpdate: $(UPDATE_OBJ) $(INC) @echo "Building biosUpdate..." $(CXX) $(LDFLAGS) $^ $(LDLIBS) -o $@ ### BIOS update end ### MEM_DUMP_SRC= \ biosMemDump.cc \ biosSpi.cc MEM_DUMP_OBJ=$(MEM_DUMP_SRC:.cc=.o) biosMemDump: $(MEM_DUMP_OBJ) $(INC) @echo "Building biosMemDump..." $(CXX) $(LDFLAGS) $^ $(LDLIBS) -o $@ EXECUTABLES=biosUpdate biosMemDump OBJECTS=$(UPDATE_OBJ) build: $(EXECUTABLES) install: install -d $(DESTDIR)/usr/bin install --mode=755 $(EXECUTABLES) $(DESTDIR)/usr/bin clean: rm -f $(OBJECTS) $(EXECUTABLES) $(STUB_SO) $(STUB_OBJS)