Eliminate another warning.
[suif.git] / Makefile.rules
blobe32da2d77eb332bb7d18843963a751205d0029c0
1 # Rules shared between Makefile.std and Makefile.sub
3 vpath %,v RCS
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)))
14 endif
15 vpath %.a $(LIBDIR)
16 vpath %.so $(SODIR)
17 ifneq ($(strip $(GLOBALLIBDIRS)),)
18 vpath %.a $(subst $(space),:,$(subst -L,,$(GLOBALLIBDIRS)))
19 vpath %.so $(subst $(space),:,$(subst -L,,$(GLOBALLIBDIRS)))
20 endif
21 endif
23 # Special rule: the standard makefiles should always be the most recent
24 # versions.
26 FORCE:
28 %.cc : %.y
29                 $(YACC) $(YFLAGS) $<
30                 @chmod 444 y.tab.c
31                 mv y.tab.c $@
33 %.c : %.y
34                 $(YACC) $(YFLAGS) $<
35                 @chmod 444 y.tab.c
36                 mv y.tab.c $@
38 %.h : %.y
39                 $(YACC) -d $(YFLAGS) $<
40                 @chmod 444 y.tab.h
41                 mv y.tab.h $@
42                 @rm -f y.tab.c
44 %.h %.cc : %.dflow
45                 @rm -f $*.h $*.cc
46                 $(SHARLIT) $(SHARLIT_FLAGS) -T $<
47                 @sed -e 's/solver.h/$*.h/' solver.cc > $*.cc
48                 @mv solver.h $*.h
49                 @chmod 444 $*.h $*.cc
50                 @rm -f solver.cc
52 %.h %.cc : %.odflow
53                 @rm -f $*.h $*.cc
54                 $(SHARLIT) $(SHARLIT_FLAGS) $<
55                 @sed -e 's/solver.h/$*.h/' solver.cc >$*.cc
56                 @mv solver.h $*.h
57                 @chmod 444 $*.h $*.cc
58                 @rm -f solver.cc