summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/scsitools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/scsitools/Makefile')
-rw-r--r--utils/imxtools/scsitools/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/imxtools/scsitools/Makefile b/utils/imxtools/scsitools/Makefile
index 4bb6e585fe..ed7db99732 100644
--- a/utils/imxtools/scsitools/Makefile
+++ b/utils/imxtools/scsitools/Makefile
@@ -1,8 +1,10 @@
-DEFINES=
+TOOLS_DIR=../../scsi
+DEFINES+=
+PREFIX?=
CC=$(PREFIX)gcc
LD=$(PREFIX)gcc
-CFLAGS=-g -std=c99 -W -Wall $(DEFINES)
-LDFLAGS=-lsgutils2
+CFLAGS=-g -std=c99 -Wall $(DEFINES) -I$(TOOLS_DIR)
+LDFLAGS=-L$(TOOLS_DIR) -lrbscsi
BINS=scsitool
all: $(BINS)