0fd869423a
The function names and prototypes are also normalized so make subsequent reworks easier. Change-Id: Ifa5d64aa144b11f8c087517ddc904744e3037361
22 lines
326 B
Makefile
22 lines
326 B
Makefile
TOOLS_DIR=../../scsi
|
|
DEFINES+=
|
|
PREFIX?=
|
|
CC=$(PREFIX)gcc
|
|
LD=$(PREFIX)gcc
|
|
CFLAGS=-g -std=c99 -Wall $(DEFINES) -I$(TOOLS_DIR)
|
|
LDFLAGS=-L$(TOOLS_DIR) -lrbscsi
|
|
BINS=scsitool
|
|
|
|
all: $(BINS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
scsitool: scsitool.o misc.o
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr *.o
|
|
|
|
veryclean:
|
|
rm -rf $(BINS)
|