Files
argyllcms/usb/Jamfile
2026-08-20 20:28:40 +01:00

77 lines
2.2 KiB
Plaintext
Executable File

# JAM style makefile for libusb-win32, to create .inf files.
#PREF_CCFLAGS = $(CCOPTFLAG) ; # Turn optimisation on
PREF_CCFLAGS = $(CCDEBUGFLAG) ; # Debugging flags
#PREF_CCFLAGS = $(CCHEAPDEBUG) ; # Heap Debugging flags
PREF_LINKFLAGS = $(LINKDEBUGFLAG) ; # Link debugging flags
#Products
#Libraries = ;
Executables = ArgyllCMS_install_USB.exe ArgyllCMS_uninstall_USB.exe ;
#Headers = ;
#Install
#InstallBin $(DESTDIR)$(PREFIX)/bin : $(Executables) ;
#InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ;
#InstallLib $(DESTDIR)$(PREFIX)/lib : $(Libraries) ;
Depends install : [ NormDstTargets $(Executables) ] ;
# USB driver un-installer
if $(NT) {
HDRS = ../h ;
UACBin ArgyllCMS_uninstall_USB ;
MainsFromSources ArgyllCMS_uninstall_USB.c ;
if $(TARGET64) = true {
if $(VSCMD_ARG_TGT_ARCH) = "arm64" {
File ArgyllCMS_install_USB.exe : bin/arm64/ArgyllCMS_install_USB.exe ;
} else {
File ArgyllCMS_install_USB.exe : bin/amd64/ArgyllCMS_install_USB.exe ;
}
} else {
File ArgyllCMS_install_USB.exe : bin/x86/ArgyllCMS_install_USB.exe ;
}
}
if [ GLOB $(PATH) : sed sed.exe ] {
Echo "sed seems to be available" ;
CREATE_INFS = true ;
} else {
CREATE_INFS = false ;
}
# Create ArgyllCMS.inf from the template and device list
if $(CREATE_INFS) = true {
local _i _t _d ;
NDepends files : ArgyllCMS.inf ;
# Make sure .cat's get built on install
NDepends install : ArgyllCMS.inf ArgyllCMS.cat ;
_i = [ NormPaths ArgyllCMS.inf ] ;
_t = [ NormPaths ArgyllCMS.inf.t ] ;
_d = [ NormPaths ArgyllCMS.inf.d ] ;
File ArgyllCMS.inf : ArgyllCMS.inf.t ;
GenFileNND ArgyllCMS.inf : "sed s/#PLAT#// $(_d) >> $(_i)" : ArgyllCMS.inf.t ArgyllCMS.inf.d ;
GenFileNND ArgyllCMS.inf : "sed s/#PLAT#/.NTx86/ $(_d) >> $(_i)" : ArgyllCMS.inf.t ArgyllCMS.inf.d ;
GenFileNND ArgyllCMS.inf : "sed s/#PLAT#/.NTamd64/ $(_d) >> $(_i)" : ArgyllCMS.inf.t ArgyllCMS.inf.d ;
GenFileNND ArgyllCMS.inf : "sed s/#PLAT#/.NTarm64/ $(_d) >> $(_i)" : ArgyllCMS.inf.t ArgyllCMS.inf.d ;
# If we have the tools and the .inf file has changed,
# create valid (but unsigned) .cat files.
if $(NT) && [ GLOB $(PATH) : inf2cat.exe ] {
_b = [ NormPaths makecat.bat ] ;
# echo "SUBDIR = '" $(SUBDIR) "'" ;
GenFileNNDnc ArgyllCMS.cat : $(_b) $(SUBDIR) : ArgyllCMS.inf ;
}
}