1 # This contains the file to upload
5 VERSION
=$(shell ..
/..
/tools
/version.sh
)
8 CFLAGS
=-Wall
-W
-I
/usr
/local
/include -DVERSION
=\"$(VERSION
)\"
10 ifeq ($(findstring CYGWIN
,$(shell uname
)),CYGWIN
)
16 CROSS
=i586-mingw32msvc-
20 WINLIBS
= -I libusb-win32-device-bin-0.1
.12.1/include libusb-win32-device-bin-0.1
.12.1/lib
/dynamic
/libusb_dyn.c
28 gcc
$(CFLAGS
) $(LIBS
) -o tcctool tcctool.c
31 tcctool.exe
: tcctool.c
32 $(CC
) $(CFLAGS
) $(WINLIBS
) -o tcctool.exe tcctool.c
33 $(CROSS
)strip tcctool.exe
35 tcctool-mac
: tcctool-i386 tcctool-ppc
36 lipo
-create tcctool-ppc tcctool-i386
-output tcctool-mac
38 tcctool-i386
: tcctool.c usb.h libusb-i386.a
39 gcc
-isysroot
/Developer
/SDKs
/MacOSX10.4u.sdk
-framework iokit
-framework coreservices
-arch i386
$(CFLAGS
) -o tcctool-i386 tcctool.c
-I. libusb-i386.a
42 tcctool-ppc
: tcctool.c usb.h libusb-ppc.a
43 gcc
-isysroot
/Developer
/SDKs
/MacOSX10.4u.sdk
-framework iokit
-framework coreservices
-arch ppc
$(CFLAGS
) -o tcctool-ppc tcctool.c
-I. libusb-ppc.a
47 rm -f tcctool.exe tcctool-mac tcctool-i386 tcctool-ppc tcctool
*~