0778184782
No code modification code, just moving code around. Change-Id: I30744d3994aa7540f4b5b158f31b51959d5d8586
23 lines
363 B
Makefile
23 lines
363 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 stmp_scsi.o
|
|
$(MAKE) -C $(TOOLS_DIR)
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr *.o
|
|
|
|
veryclean:
|
|
rm -rf $(BINS)
|