summaryrefslogtreecommitdiff
path: root/utils/nwztools/scsitools/Makefile
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-11-11 16:04:15 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-11-11 16:07:14 +0100
commit33856d9ceb6df817c4f40f42bfcf9ee9fa188848 (patch)
treeb6b00a247fa13505400aaa886994c9b751e6f48d /utils/nwztools/scsitools/Makefile
parentc95e30b75d75b674f0d645b7c41377bbd0511213 (diff)
downloadrockbox-33856d9ceb6df817c4f40f42bfcf9ee9fa188848.tar.gz
rockbox-33856d9ceb6df817c4f40f42bfcf9ee9fa188848.zip
nwztool/scsitools: cleanup and add destination changer tool
Now that we have a nice database of player index, the scsitool becomes more useful and supports a lot more players. I did some general cleanup of the code, though eventually it would be nice to really split it into a library and a CLI. The SCSI vendor command allow to read but also write most NVP nodes. Since there seems to a demand to change destination and sound pressure settings on device, I implement this feature in the tool. I do not plan to allow arbitrary NVP writes because this could easily brick the device. Changing the destination should be safe, but as usual, use at your own risks. Change-Id: Iff4e8cc3ac97b965c1df849051c5fd373756cda5
Diffstat (limited to 'utils/nwztools/scsitools/Makefile')
-rw-r--r--utils/nwztools/scsitools/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/utils/nwztools/scsitools/Makefile b/utils/nwztools/scsitools/Makefile
index f51537fe76..41ffce33b1 100644
--- a/utils/nwztools/scsitools/Makefile
+++ b/utils/nwztools/scsitools/Makefile
@@ -1,20 +1,16 @@
1DEFINES= 1DEFINES=
2CC=gcc 2CC=gcc
3LD=gcc 3LD=gcc
4CFLAGS=-g -std=c99 -W -Wall $(DEFINES) 4NWZ_DB_DIR=../database
5INCLUDES=-I$(NWZ_DB_DIR)
6CFLAGS=-std=c99 -W -Wall $(DEFINES) $(INCLUDES)
5LDFLAGS=-lsgutils2 7LDFLAGS=-lsgutils2
6BINS=scsitool 8BINS=scsitool
7 9
8all: $(BINS) 10all: $(BINS)
9 11
10%.o: %.c 12scsitool: scsitool.c misc.c para_noise.c $(NWZ_DB_DIR)/nwz_db.c
11 $(CC) $(CFLAGS) -c -o $@ $< 13 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
12
13scsitool: scsitool.o misc.o para_noise.o
14 $(LD) -o $@ $^ $(LDFLAGS)
15 14
16clean: 15clean:
17 rm -fr *.o
18
19veryclean:
20 rm -rf $(BINS) 16 rm -rf $(BINS)