X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f3e85e94d4edaeb0d219e41c227adf7a75d84e9f..1d00044a33c8852a4675b91b8dc6b4ccfec1e8b3:/Makefile.am diff --git a/Makefile.am b/Makefile.am index f32b3bf..93a6560 100644 --- a/Makefile.am +++ b/Makefile.am @@ -91,13 +91,19 @@ libcycript.db: Bridge.def libcycript.py if CY_PRELINK CY_LANGFLAGS = -DCY_JAVA=$(CY_JAVA) -DCY_PYTHON=$(CY_PYTHON) -DCY_OBJECTIVEC=$(CY_OBJECTIVEC) +if CY_ANDROID +CY_ANDFLAGS = -U__APPLE__ -D__ANDROID__ +else +CY_ANDFLAGS = +endif + CLEANFILES += Analyze Analyze: Analyze.cpp Error.cpp Output.cpp Replace.cpp Syntax.cpp $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) -std=c++11 $(LDFLAGS_FOR_BUILD) $(CY_LANGFLAGS) -I$(srcdir)/extra -o $@ $^ $(CY_LIBCLANG) -Wno-bitwise-op-parentheses -Wno-dangling-else -Wno-logical-op-parentheses CLEANFILES += Bridge.def Bridge.def: Analysis.cpp Analyze - ./Analyze $< $(OBJCXX) $(CPPFLAGS) $(AM_OBJCXXFLAGS) $(OBJCXXFLAGS) $(CY_LANGFLAGS) >$@ + ./Analyze $< $(OBJCXX) $(CPPFLAGS) $(AM_OBJCXXFLAGS) $(OBJCXXFLAGS) $(CY_LANGFLAGS) $(CY_ANDFLAGS) >$@ else CLEANFILES += Bridge.def Bridge.def: Bridge.def.in