From 6b4d032d4964caaa85be4ba8f3a7874afbf958cc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 10:09:22 +0200 Subject: Adding upstream version 20230625. Signed-off-by: Daniel Baumann --- isci/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 isci/Makefile (limited to 'isci/Makefile') diff --git a/isci/Makefile b/isci/Makefile new file mode 100644 index 0000000..3849373 --- /dev/null +++ b/isci/Makefile @@ -0,0 +1,23 @@ +# Makefile for create_fw +# +CC=gcc +CFLAGS=-c -Wall -O2 -g +LDFLAGS= +SOURCES=create_fw.c +OBJECTS=$(SOURCES:.cpp=.o) +EXECUTABLE=create_fw +BLOB=isci_firmware.bin + +all: $(SOURCES) $(EXECUTABLE) $(BLOB) + +$(EXECUTABLE): $(OBJECTS) + $(CC) $(LDFLAGS) $(OBJECTS) -o $@ + +.c.o: + $(CC) $(CFLAGS) $< -O $@ + +$(BLOB): $(EXECUTABLE) + ./$(EXECUTABLE) >$@ + +clean: + rm -f *.o $(EXECUTABLE) -- cgit v1.2.3