1 # Rules shared between Makefile.std and Makefile.sub
5 space := $(empty) $(empty)
7 # Set up search path for library dependencies
8 # Note: It is important to avoid these vpath directives when compiling
9 # libraries, because otherwise the directories are searched for the target.
10 ifneq ($(strip $(LIBS)),)
11 ifneq ($(strip $(LOCALLIBDIRS)),)
12 vpath %.a $(subst $(space),:,$(subst -L,,$(LOCALLIBDIRS)))
13 vpath %.so $(subst $(space),:,$(subst -L,,$(LOCALLIBDIRS)))
17 ifneq ($(strip $(GLOBALLIBDIRS)),)
18 vpath %.a $(subst $(space),:,$(subst -L,,$(GLOBALLIBDIRS)))
19 vpath %.so $(subst $(space),:,$(subst -L,,$(GLOBALLIBDIRS)))
23 # Special rule: the standard makefiles should always be the most recent
39 $(YACC) -d $(YFLAGS) $<
46 $(SHARLIT) $(SHARLIT_FLAGS) -T $<
47 @sed -e 's/solver.h/$*.h/' solver.cc > $*.cc
54 $(SHARLIT) $(SHARLIT_FLAGS) $<
55 @sed -e 's/solver.h/$*.h/' solver.cc >$*.cc