blob: 1b86b0235587a13e62dc6e6d9ec0df4142bce6a9 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001all:: subdirs $(LIBRARY).a
2
3install-shlibs::
4
5uninstall-shlibs::
6
7real-subdirs::
8
9subdirs:: Makefile
10 $(Q) $(MAKE) -s real-subdirs
11 $(Q) touch subdirs
12
13clean::
14 $(Q) $(RM) -f subdirs
15
16$(LIBRARY).a: $(OBJS)
17 $(E) " GEN_LIB $@"
18 $(Q) (if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi)
19 $(Q) $(ARGEN) $@ $(OBJS)
20 -@$(RANLIB) $@
21 $(Q) $(RM) -f ../$@
22 $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) \
23 `echo $(my_dir) | sed -e 's;lib/;;'`/$@ $@)
24
25$(LIB)/$(LIBRARY).a: $(LIBRARY).a