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?=
|
2019-04-22 21:43:17 +00:00
|
|
|
EXE_EXT?=
|
2017-01-07 15:31:28 +00:00
|
|
|
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)
|
2020-06-13 14:20:34 +00:00
|
|
|
CFLAGS=-std=c99 -g -Wall -O2 $(DEFINES) $(INCLUDES)
|
2017-01-07 15:31:28 +00:00
|
|
|
LDFLAGS=-L$(SCSI_DIR) -lrbscsi
|
2019-04-22 21:43:17 +00:00
|
|
|
BINS=scsitool$(EXE_EXT)
|
2012-11-03 01:29:00 +00:00
|
|
|
|
|
|
|
all: $(BINS)
|
|
|
|
|
2019-04-22 21:43:17 +00:00
|
|
|
scsitool$(EXE_EXT): 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)
|