blob: 3849373aa937055c031fa2e1881e6c34d64b4621 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
|