9 REALCC
= $(CROSS_PREFIX
)$(CC
)
10 REALLD
= $(CROSS_PREFIX
)$(LD
)
11 REALRANLIB
= $(CROSS_PREFIX
)$(RANLIB
)
14 HOSTCCFLAGS
= -std
=gnu
++0x
15 CFLAGS
+= -std
=gnu
++0x
$(USER_CFLAGS
)
22 LDFLAGS
= -lboost_iostreams
$(BOOST_LIB_POSTFIX
) -lboost_filesystem
$(BOOST_LIB_POSTFIX
) -lboost_system
$(BOOST_LIB_POSTFIX
) -lboost_regex
$(BOOST_LIB_POSTFIX
) -lz
-lcurl
$(USER_LDFLAGS
)
24 ifeq ($(THREADS
), NATIVE
)
25 CFLAGS
+= -DNATIVE_THREADS
27 ifeq ($(THREADS
), BOOST
)
28 CFLAGS
+= -DBOOST_THREADS
29 LDFLAGS
+= -lboost_thread
$(BOOST_LIB_POSTFIX
)
31 $(error
"Bad value for THREADS (expected NATIVE or BOOST)")
36 CFLAGS
+= -DUSE_LIBGCRYPT_SHA256
37 LDFLAGS
+= -lgcrypt
-lgpg-error
41 CFLAGS
+= -DLIBLZMA_AVAILABLE
45 ifeq ($(ARCHITECTURE
), I386
)
46 CFLAGS
+= -DARCH_IS_I386
53 all: src
/__all_files__
55 CFLAGS
+= $(shell $(CROSS_PREFIX
)pkg-config
$(LUA
) --cflags)
56 LDFLAGS
+= $(shell $(CROSS_PREFIX
)pkg-config
$(LUA
) --libs
)
58 compiler
=$(subst ++,cc,$(REALCC
))
59 gambatte_compiler
=$(REALCC
)
61 bsnes
/out
/libsnes.
$(ARCHIVE_SUFFIX
): forcelook
62 $(MAKE
) -C bsnes
$(BSNES_PROFILE_STRING
) $(BSNES_TARGET_STRING
)
63 $(REALRANLIB
) bsnes
/out
/libsnes.
$(ARCHIVE_SUFFIX
)
66 src
/__all_files__
: src
/core
/version.
cpp forcelook
67 $(MAKE
) -C src precheck
69 cp src
/lsnes
$(DOT_EXECUTABLE_SUFFIX
) .
71 buildaux
/version.exe
: buildaux
/version.
cpp VERSION
72 $(HOSTCC
) $(HOSTCCFLAGS
) -o
$@
$<
73 src
/core
/version.
cpp: buildaux
/version.exe forcelook
74 buildaux
/version.exe
>$@