Android: Fix crash when playback is passing invalid metadata around.
[maemo-rb.git] / utils / tcctool / Makefile
blob7258f2f8cd3b853d18f39c1d6a0cf05e8271e584
1 # This contains the file to upload
2 ROMFILE=player.rom
4 ifndef VERSION
5 VERSION=$(shell ../../tools/version.sh)
6 endif
8 CFLAGS=-Wall -W -I/usr/local/include -DVERSION=\"$(VERSION)\"
10 ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
11 OUTPUT=tcctool.exe
12 CROSS=
13 CFLAGS+=-mno-cygwin
14 else
15 OUTPUT=tcctool
16 CROSS=i586-mingw32msvc-
17 endif
19 LIBS = -lusb
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
22 NATIVECC = gcc
23 CC = $(CROSS)gcc
25 all: $(OUTPUT)
27 tcctool: tcctool.c
28 gcc $(CFLAGS) $(LIBS) -o tcctool tcctool.c
29 strip tcctool
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
40 strip tcctool-i386
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
44 strip tcctool-ppc
46 clean:
47 rm -f tcctool.exe tcctool-mac tcctool-i386 tcctool-ppc tcctool *~