summaryrefslogtreecommitdiff
path: root/lib/Makefile.checker
blob: 7bff0f426881de4a2f9658081dcb4577d497d190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
all:: $(LIBRARY)_chk.a

real-subdirs:: Makefile
	$(E) "	MKDIR checker"
	$(Q) mkdir -p checker

clean::
	$(RM) -rf checker

$(LIBRARY)_chk.a: $(OBJS)
	$(E) "	GEN_CHECKER_LIB $@"
	$(Q) (test -r $@ && $(RM) -f $@.bak && $(MV) $@ $@.bak)
	$(Q) (cd checker; $(ARGEN) $@ $(OBJS))
	-$(Q) $(RANLIB) $@
	$(Q) $(RM) -f ../$@
	$(Q) (cd .. ; $(LN) $(LINK_BUILD_FLAGS) \
	     `echo $(my_dir) | sed -e 's;lib/;;'`/$@ $@)