forked from len0rd/rockbox
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
This commit is contained in:
parent
063ff294a2
commit
4ed5727654
1 changed files with 3 additions and 2 deletions
|
@ -1,17 +1,18 @@
|
||||||
SCSI_DIR=../../scsi
|
SCSI_DIR=../../scsi
|
||||||
DEFINES=
|
DEFINES=
|
||||||
PREFIX?=
|
PREFIX?=
|
||||||
|
EXE_EXT?=
|
||||||
CC=$(PREFIX)gcc
|
CC=$(PREFIX)gcc
|
||||||
LD=$(PREFIX)gcc
|
LD=$(PREFIX)gcc
|
||||||
NWZ_DB_DIR=../../../firmware/target/hosted/sonynwz
|
NWZ_DB_DIR=../../../firmware/target/hosted/sonynwz
|
||||||
INCLUDES=-I$(NWZ_DB_DIR) -I$(SCSI_DIR)
|
INCLUDES=-I$(NWZ_DB_DIR) -I$(SCSI_DIR)
|
||||||
CFLAGS=-std=c99 -Wall $(DEFINES) $(INCLUDES)
|
CFLAGS=-std=c99 -Wall $(DEFINES) $(INCLUDES)
|
||||||
LDFLAGS=-L$(SCSI_DIR) -lrbscsi
|
LDFLAGS=-L$(SCSI_DIR) -lrbscsi
|
||||||
BINS=scsitool
|
BINS=scsitool$(EXE_EXT)
|
||||||
|
|
||||||
all: $(BINS)
|
all: $(BINS)
|
||||||
|
|
||||||
scsitool: scsitool.c misc.c para_noise.c $(NWZ_DB_DIR)/nwz-db.c
|
scsitool$(EXE_EXT): scsitool.c misc.c para_noise.c $(NWZ_DB_DIR)/nwz-db.c
|
||||||
$(MAKE) -C $(SCSI_DIR)
|
$(MAKE) -C $(SCSI_DIR)
|
||||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue