2017-01-07 15:31:28 +00:00
|
|
|
SCSI_DIR=../../scsi
|
2012-11-03 01:29:00 +00:00
|
|
|
DEFINES=
|
2017-01-07 15:31:28 +00:00
|
|
|
PREFIX?=
|
|
|
|
CC=$(PREFIX)gcc
|
|
|
|
LD=$(PREFIX)gcc
|
2017-02-23 10:33:19 +00:00
|
|
|
NWZ_DB_DIR=../../../firmware/target/hosted/sonynwz
|
2017-01-07 15:31:28 +00:00
|
|
|
INCLUDES=-I$(NWZ_DB_DIR) -I$(SCSI_DIR)
|
2017-01-08 15:08:28 +00:00
|
|
|
CFLAGS=-std=c99 -Wall $(DEFINES) $(INCLUDES)
|
2017-01-07 15:31:28 +00:00
|
|
|
LDFLAGS=-L$(SCSI_DIR) -lrbscsi
|
2012-11-03 01:29:00 +00:00
|
|
|
BINS=scsitool
|
|
|
|
|
|
|
|
all: $(BINS)
|
|
|
|
|
2017-02-23 10:33:19 +00:00
|
|
|
scsitool: scsitool.c misc.c para_noise.c $(NWZ_DB_DIR)/nwz-db.c
|
2017-01-07 15:31:28 +00:00
|
|
|
$(MAKE) -C $(SCSI_DIR)
|
2016-11-11 15:04:15 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
2012-11-03 01:29:00 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(BINS)
|