mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2025-02-07 21:30:56 +00:00
Add dist and install targets
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
9ac16657e5
commit
748d52b1c8
@ -1,5 +1,8 @@
|
|||||||
VPATH=cybootloaderutils ../SCSI2SD/src
|
VPATH=cybootloaderutils ../SCSI2SD/src
|
||||||
|
|
||||||
|
VERSION=4.4.0
|
||||||
|
NAME=scsi2sd-util
|
||||||
|
|
||||||
ifeq ($(USE_SYSTEM), Yes)
|
ifeq ($(USE_SYSTEM), Yes)
|
||||||
USE_SYSTEM_HIDAPI = Yes
|
USE_SYSTEM_HIDAPI = Yes
|
||||||
USE_SYSTEM_ZLIB = Yes
|
USE_SYSTEM_ZLIB = Yes
|
||||||
@ -9,7 +12,7 @@ endif
|
|||||||
CPPFLAGS_HIDAPI=$(shell pkg-config hidapi-hidraw --cflags)
|
CPPFLAGS_HIDAPI=$(shell pkg-config hidapi-hidraw --cflags)
|
||||||
CPPFLAGS_ZLIB=$(shell pkg-config zlib --cflags)
|
CPPFLAGS_ZLIB=$(shell pkg-config zlib --cflags)
|
||||||
|
|
||||||
CPPFLAGS = -I cybootloaderutils $(CPPFLAGS_HIDAPI) -I ../include -Ilibzipper-1.0.4 $(CPPFLAGS_ZLIB)
|
CPPFLAGS = -I cybootloaderutils $(CPPFLAGS_HIDAPI) -I. -I ../include -Ilibzipper-1.0.4 $(CPPFLAGS_ZLIB)
|
||||||
CFLAGS += -Wall -Wno-pointer-sign -O2 -g
|
CFLAGS += -Wall -Wno-pointer-sign -O2 -g
|
||||||
CXXFLAGS += -Wall -O2 -g -std=c++0x
|
CXXFLAGS += -Wall -O2 -g -std=c++0x
|
||||||
|
|
||||||
@ -175,3 +178,19 @@ endif
|
|||||||
clean:
|
clean:
|
||||||
rm $(BUILD)/scsi2sd-util$(EXE) $(OBJ) $(BUILD)/libzipper/buildstamp
|
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 \
|
||||||
|
$(NAME)-$(VERSION)
|
||||||
|
tar jcvf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user