X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/53b59114e6a1f2e04ed99db5a0cce3e0d8dfd0f3..71f832e5e6d2dca92930be31bfab8c9d53b2bb3a:/makefile diff --git a/makefile b/makefile index f582252..bebb995 100644 --- a/makefile +++ b/makefile @@ -38,9 +38,9 @@ ldid := true entitle := $(ldid) lib := lib dll := so -apr := $(shell apr-1-config --link-ld) -library := $(apr) -console := $(apr) -lreadline +apr_config := apr-1-config +library := +console := -lreadline depends := restart ?= $(MAKE) @@ -62,9 +62,13 @@ endif endif endif +apr := $(shell $(apr_config) --link-ld) +library += $(apr) +console += $(apr) + flags += -Wall -Werror -Wno-parentheses #-Wno-unused flags += -fno-common -flags += -I. -Iinclude -I$(shell apr-1-config --includedir) +flags += -I. -Iinclude -I$(shell $(apr_config) --includedir) all += $(lib)cycript.$(dll) @@ -107,7 +111,7 @@ endif all: $(all) -clean: +clean:: rm -f *.o $(lib)cycript.$(dll) $(all) Struct.hpp lex.cy.c Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh cyrver Cycript.yy Cycript.l control Bridge.hpp %.yy: %.yy.in