mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2024-06-02 06:41:36 +00:00
Modify build to work for win32
This commit is contained in:
parent
dc2f3da785
commit
4750697019
|
@ -1,227 +1,227 @@
|
|||
VPATH=cybootloaderutils ../SCSI2SD/src
|
||||
|
||||
VERSION=4.4.0
|
||||
NAME=scsi2sd-util
|
||||
|
||||
ifeq ($(USE_SYSTEM), Yes)
|
||||
USE_SYSTEM_HIDAPI = Yes
|
||||
USE_SYSTEM_ZLIB = Yes
|
||||
USE_SYSTEM_WX = Yes
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SYSTEM_HIDAPI), Yes)
|
||||
CPPFLAGS_HIDAPI=$(shell pkg-config hidapi-hidraw --cflags)
|
||||
LDFLAGS_HIDAPI=$(shell pkg-config hidapi-hidraw --libs)
|
||||
else
|
||||
CPPFLAGS_HIDAPI=-I hidapi/hidapi
|
||||
LDFLAGS_HIDAPI=
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SYSTEM_ZLIB), Yes)
|
||||
CPPFLAGS_ZLIB=$(shell pkg-config zlib --cflags)
|
||||
LDFLAGS_ZLIB=$(shell pkg-config zlib --libs)
|
||||
LIBZIPPER_CONFIG = --disable-shared LDFLAGS="$(LDFLAGS_ZLIB)" CPPFLAGS="$(CPPFLAGS_ZLIB)"
|
||||
else
|
||||
CPPFLAGS_ZLIB=-I$(BUILD)/zlib
|
||||
LDFLAGS_ZLIB=-L$(BUILD)/zlib -lz
|
||||
LIBZIPPER_CONFIG = --disable-shared LDFLAGS="-L../zlib" CPPFLAGS="-I../zlib"
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SYSTEM_WX),Yes)
|
||||
LDFLAGS_WX=$(shell wx-config-3.0 --libs)
|
||||
else
|
||||
LDFLAGS_WX=$(shell $(BUILD)/wx/wx-config --libs)
|
||||
endif
|
||||
|
||||
CPPFLAGS = -I cybootloaderutils $(CPPFLAGS_HIDAPI) -I. -I ../include -Ilibzipper-1.0.4 $(CPPFLAGS_ZLIB)
|
||||
CFLAGS += -Wall -Wno-pointer-sign -O2 -g
|
||||
CXXFLAGS += -Wall -O2 -g -std=c++0x
|
||||
|
||||
LDFLAGS += -L$(BUILD)/libzipper/.libs -lzipper $(LDFLAGS_ZLIB) $(LDFLAGS_HIDAPI)
|
||||
|
||||
|
||||
# wxWidgets 3.0.2 uses broken Webkit headers under OSX Yosemeti
|
||||
# liblzma not available on OSX 10.7
|
||||
# --disable-mediactrl for missing Quicktime.h on Mac OSX Sierra
|
||||
WX_CONFIG=--disable-webkit --disable-webviewwebkit --disable-mediactrl \
|
||||
--without-libtiff --without-libjbig --without-liblzma --without-opengl \
|
||||
--enable-monolithic --enable-stl --disable-shared
|
||||
|
||||
TARGET ?= $(shell uname -s)
|
||||
ifeq ($(TARGET),Win32)
|
||||
VPATH += hidapi/windows
|
||||
LDFLAGS += -static -mconsole -mwindows -lsetupapi
|
||||
BUILD := $(PWD)/build/windows/32bit
|
||||
CC=i686-w64-mingw32-gcc
|
||||
CXX=i686-w64-mingw32-g++
|
||||
LIBZIPPER_CONFIG+=--host=i686-w64-mingw32
|
||||
EXE=.exe
|
||||
WX_CONFIG+=--host=i686-w64-mingw32
|
||||
TARGETOBJ = $(BUILD)/gnulib_ffs.o
|
||||
endif
|
||||
ifeq ($(TARGET),Win64)
|
||||
VPATH += hidapi-windows
|
||||
LDFLAGS += -static -mconsole -mwindows -lsetupapi
|
||||
BUILD := $(PWD)/build/windows/64bit
|
||||
CC=x86_64-w64-mingw32-gcc
|
||||
CXX=x86_64-w64-mingw32-g++
|
||||
LIBZIPPER_CONFIG+=--host=x86_64-w64-mingw32
|
||||
EXE=.exe
|
||||
WX_CONFIG+=--host=x86_64-w64-mingw32
|
||||
TARGETOBJ = $(BUILD)/gnulib_ffs.o
|
||||
endif
|
||||
ifeq ($(TARGET),Linux)
|
||||
VPATH += hidapi/linux
|
||||
LDFLAGS += -ludev -lexpat
|
||||
BUILD := $(PWD)/build/linux
|
||||
endif
|
||||
ifeq ($(TARGET),Darwin)
|
||||
# Should match OSX
|
||||
VPATH += hidapi-mac
|
||||
LDFLAGS += -framework IOKit -framework CoreFoundation -lexpat
|
||||
CC=clang -mmacosx-version-min=10.7
|
||||
CXX=clang++ -stdlib=libc++ -mmacosx-version-min=10.7
|
||||
WX_CONFIG += --with-macosx-version-min=10.7
|
||||
BUILD := $(PWD)/build/mac
|
||||
all: $(BUILD)/scsi2sd-util.dmg
|
||||
|
||||
$(BUILD)/scsi2sd-util.dmg: $(BUILD)/scsi2sd-util $(BUILD)/scsi2sd-monitor
|
||||
rm -rf $(dir $@)/dmg $@
|
||||
mkdir -p $(dir $@)/dmg
|
||||
cp $(BUILD)/scsi2sd-util $(BUILD)/scsi2sd-monitor $(dir $@)/dmg
|
||||
chmod a+rx $(dir $@)/dmg/*
|
||||
hdiutil create -srcfolder $(dir $@)/dmg $@
|
||||
endif
|
||||
|
||||
export CC CXX
|
||||
|
||||
all: $(BUILD)/scsi2sd-util$(EXE) $(BUILD)/scsi2sd-monitor$(EXE) $(BUILD)/scsi2sd-bulk$(EXE)
|
||||
|
||||
CYAPI = \
|
||||
$(BUILD)/cybtldr_api2.o \
|
||||
$(BUILD)/cybtldr_api.o \
|
||||
$(BUILD)/cybtldr_command.o \
|
||||
$(BUILD)/cybtldr_parse.o \
|
||||
|
||||
|
||||
ifneq ($(USE_SYSTEM_HIDAPI),Yes)
|
||||
HIDAPI = \
|
||||
$(BUILD)/hid.o
|
||||
endif
|
||||
|
||||
|
||||
CONSOLEOBJ = \
|
||||
$(CYAPI) $(HIDAPI) \
|
||||
$(BUILD)/Firmware.o \
|
||||
$(BUILD)/SCSI2SD_Bootloader.o \
|
||||
$(BUILD)/SCSI2SD_HID.o \
|
||||
$(BUILD)/hidpacket.o \
|
||||
$(TARGETOBJ)
|
||||
|
||||
OBJ = \
|
||||
${CONSOLEOBJ} \
|
||||
$(BUILD)/ConfigUtil.o \
|
||||
$(BUILD)/BoardPanel.o \
|
||||
$(BUILD)/TargetPanel.o \
|
||||
$(BUILD)/hidpacket.o \
|
||||
|
||||
EXEOBJ = \
|
||||
$(BUILD)/scsi2sd-util.o \
|
||||
$(BUILD)/scsi2sd-monitor.o \
|
||||
|
||||
|
||||
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
$(OBJ): $(BUILD)/zlib/buildstamp
|
||||
$(EXEOBJ): $(BUILD)/zlib/buildstamp
|
||||
$(BUILD)/zlib/buildstamp:
|
||||
mkdir -p $(dir $@)
|
||||
( \
|
||||
cd $(dir $@) && \
|
||||
cp -a $(CURDIR)/zlib-1.2.8/* . && \
|
||||
./configure --static && \
|
||||
$(MAKE) \
|
||||
) && \
|
||||
touch $@
|
||||
endif
|
||||
|
||||
ifneq ($(USE_SYSTEM_WX),Yes)
|
||||
$(OBJ): $(BUILD)/wx/buildstamp
|
||||
$(EXEOBJ): $(BUILD)/wx/buildstamp
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
$(BUILD)/wx/buildstamp: $(BUILD)/zlib/buildstamp
|
||||
else
|
||||
$(BUILD)/wx/buildstamp:
|
||||
endif
|
||||
mkdir -p $(dir $@)
|
||||
( \
|
||||
cd $(dir $@) && \
|
||||
$(CURDIR)/wxWidgets/configure $(WX_CONFIG) CPPFLAGS="$(CPPFLAGS_ZLIB)" LDFLAGS="$(LDFLAGS_ZLIB)" && \
|
||||
$(MAKE) \
|
||||
) && \
|
||||
touch $@
|
||||
endif
|
||||
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
LIBZIPPER_STATIC=-enable-static
|
||||
endif
|
||||
|
||||
$(OBJ): $(BUILD)/libzipper/buildstamp
|
||||
$(EXEOBJ): $(BUILD)/libzipper/buildstamp
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
$(BUILD)/libzipper/buildstamp: $(BUILD)/zlib/buildstamp
|
||||
else
|
||||
$(BUILD)/libzipper/buildstamp:
|
||||
endif
|
||||
mkdir -p $(dir $@)
|
||||
( \
|
||||
cd $(dir $@) && \
|
||||
$(CURDIR)/libzipper-1.0.4/configure ${LIBZIPPER_CONFIG} --disable-shared $(LIBZIPPER_STATIC) && \
|
||||
$(MAKE) libzipper.la \
|
||||
) && \
|
||||
touch $@
|
||||
|
||||
$(BUILD)/%.o: %.c
|
||||
mkdir -p $(dir $@)
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $< -c -o $@
|
||||
|
||||
$(BUILD)/%.o: %.cc
|
||||
mkdir -p $(dir $@)
|
||||
ifneq ($(USE_SYSTEM_WX),Yes)
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) `$(BUILD)/wx/wx-config --cxxflags` $< -c -o $@
|
||||
else
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) `wx-config-3.0 --cxxflags` $< -c -o $@
|
||||
endif
|
||||
|
||||
$(BUILD)/scsi2sd-util$(EXE): $(OBJ) $(BUILD)/scsi2sd-util.o
|
||||
mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS_WX) $(LDFLAGS) -o $@
|
||||
|
||||
$(BUILD)/scsi2sd-monitor$(EXE): $(OBJ) $(BUILD)/scsi2sd-monitor.o
|
||||
mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS_WX) $(LDFLAGS) -o $@
|
||||
|
||||
$(BUILD)/scsi2sd-bulk$(EXE): $(CONSOLEOBJ) $(BUILD)/scsi2sd-bulk.o
|
||||
mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
rm $(BUILD)/scsi2sd-util$(EXE) $(OBJ) $(BUILD)/libzipper/buildstamp
|
||||
|
||||
PREFIX=/usr
|
||||
install:
|
||||
install -d $(DESTDIR)/$(PREFIX)/bin
|
||||
install build/linux/scsi2sd-util $(DESTDIR)/$(PREFIX)/bin
|
||||
install build/linux/scsi2sd-monitor $(DESTDIR)/$(PREFIX)/bin
|
||||
|
||||
dist:
|
||||
rm -fr $(NAME)-$(VERSION)
|
||||
mkdir $(NAME)-$(VERSION)
|
||||
cp -pr build.sh ConfigUtil.cc ConfigUtil.hh scsi2sd-util.spec \
|
||||
../SCSI2SD/src/hidpacket.c ../include/hidpacket.h ../include/scsi2sd.h \
|
||||
cybootloaderutils Firmware.cc Firmware.hh libzipper-1.0.4 Makefile \
|
||||
SCSI2SD_Bootloader.cc SCSI2SD_Bootloader.hh SCSI2SD_HID.cc SCSI2SD_HID.hh \
|
||||
scsi2sd-monitor.cc scsi2sd-util.cc TargetPanel.cc TargetPanel.hh \
|
||||
BoardPanel.cc BoardPanel.hh \
|
||||
$(NAME)-$(VERSION)
|
||||
tar jcvf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
|
||||
VPATH=cybootloaderutils ../SCSI2SD/src
|
||||
|
||||
VERSION=4.4.0
|
||||
NAME=scsi2sd-util
|
||||
TARGET ?= $(shell uname -s)
|
||||
|
||||
ifeq ($(USE_SYSTEM), Yes)
|
||||
USE_SYSTEM_HIDAPI = Yes
|
||||
USE_SYSTEM_ZLIB = Yes
|
||||
USE_SYSTEM_WX = Yes
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SYSTEM_HIDAPI), Yes)
|
||||
CPPFLAGS_HIDAPI=$(shell pkg-config hidapi-hidraw --cflags)
|
||||
LDFLAGS_HIDAPI=$(shell pkg-config hidapi-hidraw --libs)
|
||||
else
|
||||
CPPFLAGS_HIDAPI=-I hidapi/hidapi
|
||||
LDFLAGS_HIDAPI=
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SYSTEM_ZLIB), Yes)
|
||||
CPPFLAGS_ZLIB=$(shell pkg-config zlib --cflags)
|
||||
LDFLAGS_ZLIB=$(shell pkg-config zlib --libs)
|
||||
LIBZIPPER_CONFIG = --disable-shared LDFLAGS="$(LDFLAGS_ZLIB)" CPPFLAGS="$(CPPFLAGS_ZLIB)"
|
||||
else
|
||||
CPPFLAGS_ZLIB=-I$(BUILD)/zlib
|
||||
LDFLAGS_ZLIB=-L$(BUILD)/zlib -lz
|
||||
LIBZIPPER_CONFIG = --disable-shared LDFLAGS="-L../zlib" CPPFLAGS="-I../zlib"
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SYSTEM_WX),Yes)
|
||||
LDFLAGS_WX=$(shell wx-config-3.0 --libs)
|
||||
else
|
||||
LDFLAGS_WX=$(shell $(BUILD)/wx/wx-config --libs)
|
||||
endif
|
||||
|
||||
CPPFLAGS = -I cybootloaderutils $(CPPFLAGS_HIDAPI) -I. -I ../include -Ilibzipper-1.0.4 $(CPPFLAGS_ZLIB)
|
||||
CFLAGS += -Wno-pointer-sign -O2 -g
|
||||
CXXFLAGS += -O2 -g -std=c++0x
|
||||
|
||||
LDFLAGS += -L$(BUILD)/libzipper/.libs -lzipper $(LDFLAGS_ZLIB) $(LDFLAGS_HIDAPI)
|
||||
|
||||
|
||||
# wxWidgets 3.0.2 uses broken Webkit headers under OSX Yosemeti
|
||||
# liblzma not available on OSX 10.7
|
||||
# --disable-mediactrl for missing Quicktime.h on Mac OSX Sierra
|
||||
WX_CONFIG=--disable-webkit --disable-webviewwebkit --disable-mediactrl \
|
||||
--without-libtiff --without-libjbig --without-liblzma --without-opengl \
|
||||
--enable-monolithic --enable-stl --disable-shared
|
||||
|
||||
ifeq ($(TARGET),Win32)
|
||||
VPATH += hidapi/windows
|
||||
LDFLAGS += -static -mconsole -mwindows -lsetupapi
|
||||
BUILD := $(PWD)/build/windows/32bit
|
||||
CC=i686-w64-mingw32-gcc
|
||||
CXX=i686-w64-mingw32-g++
|
||||
LIBZIPPER_CONFIG+=--host=i686-w64-mingw32
|
||||
EXE=.exe
|
||||
WX_CONFIG+=--host=i686-w64-mingw32
|
||||
TARGETOBJ = $(BUILD)/gnulib_ffs.o
|
||||
endif
|
||||
ifeq ($(TARGET),Win64)
|
||||
VPATH += hidapi-windows
|
||||
LDFLAGS += -static -mconsole -mwindows -lsetupapi
|
||||
BUILD := $(PWD)/build/windows/64bit
|
||||
CC=x86_64-w64-mingw32-gcc
|
||||
CXX=x86_64-w64-mingw32-g++
|
||||
LIBZIPPER_CONFIG+=--host=x86_64-w64-mingw32
|
||||
EXE=.exe
|
||||
WX_CONFIG+=--host=x86_64-w64-mingw32
|
||||
TARGETOBJ = $(BUILD)/gnulib_ffs.o
|
||||
endif
|
||||
ifeq ($(TARGET),Linux)
|
||||
VPATH += hidapi/linux
|
||||
LDFLAGS += -ludev -lexpat
|
||||
BUILD := $(PWD)/build/linux
|
||||
endif
|
||||
ifeq ($(TARGET),Darwin)
|
||||
# Should match OSX
|
||||
VPATH += hidapi-mac
|
||||
LDFLAGS += -framework IOKit -framework CoreFoundation -lexpat
|
||||
CC=clang -mmacosx-version-min=10.7
|
||||
CXX=clang++ -stdlib=libc++ -mmacosx-version-min=10.7
|
||||
WX_CONFIG += --with-macosx-version-min=10.7
|
||||
BUILD := $(PWD)/build/mac
|
||||
all: $(BUILD)/scsi2sd-util.dmg
|
||||
|
||||
$(BUILD)/scsi2sd-util.dmg: $(BUILD)/scsi2sd-util $(BUILD)/scsi2sd-monitor
|
||||
rm -rf $(dir $@)/dmg $@
|
||||
mkdir -p $(dir $@)/dmg
|
||||
cp $(BUILD)/scsi2sd-util $(BUILD)/scsi2sd-monitor $(dir $@)/dmg
|
||||
chmod a+rx $(dir $@)/dmg/*
|
||||
hdiutil create -srcfolder $(dir $@)/dmg $@
|
||||
endif
|
||||
|
||||
export CC CXX
|
||||
|
||||
all: $(BUILD)/scsi2sd-util$(EXE) $(BUILD)/scsi2sd-monitor$(EXE) $(BUILD)/scsi2sd-bulk$(EXE)
|
||||
|
||||
CYAPI = \
|
||||
$(BUILD)/cybtldr_api2.o \
|
||||
$(BUILD)/cybtldr_api.o \
|
||||
$(BUILD)/cybtldr_command.o \
|
||||
$(BUILD)/cybtldr_parse.o \
|
||||
|
||||
|
||||
ifneq ($(USE_SYSTEM_HIDAPI),Yes)
|
||||
HIDAPI = \
|
||||
$(BUILD)/hid.o
|
||||
endif
|
||||
|
||||
|
||||
CONSOLEOBJ = \
|
||||
$(CYAPI) $(HIDAPI) \
|
||||
$(BUILD)/Firmware.o \
|
||||
$(BUILD)/SCSI2SD_Bootloader.o \
|
||||
$(BUILD)/SCSI2SD_HID.o \
|
||||
$(BUILD)/hidpacket.o \
|
||||
$(TARGETOBJ)
|
||||
|
||||
OBJ = \
|
||||
${CONSOLEOBJ} \
|
||||
$(BUILD)/ConfigUtil.o \
|
||||
$(BUILD)/BoardPanel.o \
|
||||
$(BUILD)/TargetPanel.o \
|
||||
$(BUILD)/hidpacket.o \
|
||||
|
||||
EXEOBJ = \
|
||||
$(BUILD)/scsi2sd-util.o \
|
||||
$(BUILD)/scsi2sd-monitor.o \
|
||||
|
||||
|
||||
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
$(OBJ): $(BUILD)/zlib/buildstamp
|
||||
$(EXEOBJ): $(BUILD)/zlib/buildstamp
|
||||
$(BUILD)/zlib/buildstamp:
|
||||
mkdir -p $(dir $@)
|
||||
( \
|
||||
cd $(dir $@) && \
|
||||
cp -a $(CURDIR)/zlib-1.2.8/* . && \
|
||||
make win32/Makefile.gcc && \
|
||||
$(MAKE) \
|
||||
) && \
|
||||
touch $@
|
||||
endif
|
||||
|
||||
ifneq ($(USE_SYSTEM_WX),Yes)
|
||||
$(OBJ): $(BUILD)/wx/buildstamp
|
||||
$(EXEOBJ): $(BUILD)/wx/buildstamp
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
$(BUILD)/wx/buildstamp: $(BUILD)/zlib/buildstamp
|
||||
else
|
||||
$(BUILD)/wx/buildstamp:
|
||||
endif
|
||||
mkdir -p $(dir $@)
|
||||
( \
|
||||
cd $(dir $@) && \
|
||||
$(CURDIR)/wxWidgets/configure $(WX_CONFIG) CPPFLAGS="$(CPPFLAGS_ZLIB)" LDFLAGS="$(LDFLAGS_ZLIB)" && \
|
||||
$(MAKE) \
|
||||
) && \
|
||||
touch $@
|
||||
endif
|
||||
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
LIBZIPPER_STATIC=-enable-static
|
||||
endif
|
||||
|
||||
$(OBJ): $(BUILD)/libzipper/buildstamp
|
||||
$(EXEOBJ): $(BUILD)/libzipper/buildstamp
|
||||
ifneq ($(USE_SYSTEM_ZLIB),Yes)
|
||||
$(BUILD)/libzipper/buildstamp: $(BUILD)/zlib/buildstamp
|
||||
else
|
||||
$(BUILD)/libzipper/buildstamp:
|
||||
endif
|
||||
mkdir -p $(dir $@)
|
||||
( \
|
||||
cd $(dir $@) && \
|
||||
$(CURDIR)/libzipper-1.0.4/configure ${LIBZIPPER_CONFIG} --disable-shared $(LIBZIPPER_STATIC) && \
|
||||
$(MAKE) libzipper.la \
|
||||
) && \
|
||||
touch $@
|
||||
|
||||
$(BUILD)/%.o: %.c
|
||||
mkdir -p $(dir $@)
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $< -c -o $@
|
||||
|
||||
$(BUILD)/%.o: %.cc
|
||||
mkdir -p $(dir $@)
|
||||
ifneq ($(USE_SYSTEM_WX),Yes)
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) `$(BUILD)/wx/wx-config --cxxflags` $< -c -o $@
|
||||
else
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) `wx-config-3.0 --cxxflags` $< -c -o $@
|
||||
endif
|
||||
|
||||
$(BUILD)/scsi2sd-util$(EXE): $(OBJ) $(BUILD)/scsi2sd-util.o
|
||||
mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS_WX) $(LDFLAGS) -o $@
|
||||
|
||||
$(BUILD)/scsi2sd-monitor$(EXE): $(OBJ) $(BUILD)/scsi2sd-monitor.o
|
||||
mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS_WX) $(LDFLAGS) -o $@
|
||||
|
||||
$(BUILD)/scsi2sd-bulk$(EXE): $(CONSOLEOBJ) $(BUILD)/scsi2sd-bulk.o
|
||||
mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
rm $(BUILD)/scsi2sd-util$(EXE) $(OBJ) $(BUILD)/libzipper/buildstamp
|
||||
|
||||
PREFIX=/usr
|
||||
install:
|
||||
install -d $(DESTDIR)/$(PREFIX)/bin
|
||||
install build/linux/scsi2sd-util $(DESTDIR)/$(PREFIX)/bin
|
||||
install build/linux/scsi2sd-monitor $(DESTDIR)/$(PREFIX)/bin
|
||||
|
||||
dist:
|
||||
rm -fr $(NAME)-$(VERSION)
|
||||
mkdir $(NAME)-$(VERSION)
|
||||
cp -pr build.sh ConfigUtil.cc ConfigUtil.hh scsi2sd-util.spec \
|
||||
../SCSI2SD/src/hidpacket.c ../include/hidpacket.h ../include/scsi2sd.h \
|
||||
cybootloaderutils Firmware.cc Firmware.hh libzipper-1.0.4 Makefile \
|
||||
SCSI2SD_Bootloader.cc SCSI2SD_Bootloader.hh SCSI2SD_HID.cc SCSI2SD_HID.hh \
|
||||
scsi2sd-monitor.cc scsi2sd-util.cc TargetPanel.cc TargetPanel.hh \
|
||||
BoardPanel.cc BoardPanel.hh \
|
||||
$(NAME)-$(VERSION)
|
||||
tar jcvf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
|
||||
|
|
Loading…
Reference in New Issue
Block a user