File: Jamfile

package info (click to toggle)
argyll 1.4.0-8
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 41,164 kB
  • sloc: ansic: 327,716; sh: 40,863; cpp: 1,695; makefile: 1,393; asm: 284; sed: 112; ruby: 56
file content (31 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

# This is a pretty dumb link between the Jamfile based build, and the
# configure & make used by the distribution libusb. 
# If you modify any sources in libusb, then jam won't rebuild them,
# you have to run "make"

PREF_CCFLAGS 	+= $(CCOPTFLAG) ;		# Turn optimisation on
#PREF_CCFLAGS	+= $(CCDEBUGFLAG) ;		# Debugging flags
PREF_LINKFLAGS	+= $(LINKDEBUGFLAG) ;

if $(OS) = MACOSX {
	OSFILE = darwin ;
} else {
	# Should detect BSD here!
	OSFILE = linux ;
}

# Run configure if it hasn't been run before

NDepends usb.h : configure ;
GenFileNND usb.h : "(cd $(SUBDIR); chmod +x configure ; ./configure ; rm -f libusb.a )" ;

HDR = . ;

# USB library
# We could run make, but it's long winded, and the resulting static
# lib is a bit screwed up, so build it the simple Jam way:
Library libusb.lib : usb.c error.c descriptors.c $(OSFILE).c ;

# USB test program 
Main testlibusb : tests/testlibusb.c : : : . : : libusb.lib ;