diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2019-04-22 23:43:17 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2019-04-22 23:45:33 +0200 |
commit | 4ed57276542124a22c26ebb1d307996fc3a7556c (patch) | |
tree | ceb089eaac9e000fec0b2356bfe701935c236d02 /utils | |
parent | 063ff294a266f68ab93f462c264613c2223a40cd (diff) | |
download | rockbox-4ed57276542124a22c26ebb1d307996fc3a7556c.tar.gz rockbox-4ed57276542124a22c26ebb1d307996fc3a7556c.zip |
nwztools: fix Makefile
Seems like newer versions of mingw will sponteanously add a .exe suffix to
the output path if it doesn't have one, for example mingw-gcc -o scsitool bla
will actually create scsitool.exe and of course this breaks my release script.
Fix this by explicitely adding the .exe to avoid any problem
Change-Id: Ic8019b968b532b2ca612ba0c03977a96c22cee01
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nwztools/scsitools/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/nwztools/scsitools/Makefile b/utils/nwztools/scsitools/Makefile index 53b901427f..0267581f69 100644 --- a/utils/nwztools/scsitools/Makefile +++ b/utils/nwztools/scsitools/Makefile | |||
@@ -1,17 +1,18 @@ | |||
1 | SCSI_DIR=../../scsi | 1 | SCSI_DIR=../../scsi |
2 | DEFINES= | 2 | DEFINES= |
3 | PREFIX?= | 3 | PREFIX?= |
4 | EXE_EXT?= | ||
4 | CC=$(PREFIX)gcc | 5 | CC=$(PREFIX)gcc |
5 | LD=$(PREFIX)gcc | 6 | LD=$(PREFIX)gcc |
6 | NWZ_DB_DIR=../../../firmware/target/hosted/sonynwz | 7 | NWZ_DB_DIR=../../../firmware/target/hosted/sonynwz |
7 | INCLUDES=-I$(NWZ_DB_DIR) -I$(SCSI_DIR) | 8 | INCLUDES=-I$(NWZ_DB_DIR) -I$(SCSI_DIR) |
8 | CFLAGS=-std=c99 -Wall $(DEFINES) $(INCLUDES) | 9 | CFLAGS=-std=c99 -Wall $(DEFINES) $(INCLUDES) |
9 | LDFLAGS=-L$(SCSI_DIR) -lrbscsi | 10 | LDFLAGS=-L$(SCSI_DIR) -lrbscsi |
10 | BINS=scsitool | 11 | BINS=scsitool$(EXE_EXT) |
11 | 12 | ||
12 | all: $(BINS) | 13 | all: $(BINS) |
13 | 14 | ||
14 | scsitool: scsitool.c misc.c para_noise.c $(NWZ_DB_DIR)/nwz-db.c | 15 | scsitool$(EXE_EXT): scsitool.c misc.c para_noise.c $(NWZ_DB_DIR)/nwz-db.c |
15 | $(MAKE) -C $(SCSI_DIR) | 16 | $(MAKE) -C $(SCSI_DIR) |
16 | $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) | 17 | $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) |
17 | 18 | ||