Makefile.lib.in
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:1k
- include @swarm_prefix@/etc/swarm/Makefile.common
- include @swarm_prefix@/etc/swarm/Makefile.rules
- LIBRARY = lib$(LIBNAME).a
- INCFILE = $(LIBNAME).h
- RANLIB = @RANLIB@
- SWARMINCLUDES = -I$(includedir) -I.
- .PHONY: install-headers install-lib
- all: symlink $(LIBRARY)
- symlink:
- test -d $(LIBNAME) || ln -s . $(LIBNAME)
- install: install-headers install-lib
- install-headers:
- $(INSTALL_DATA) $(INCFILE) $(includedir)
- test -d $(includedir)/$(LIBNAME) || mkdir $(includedir)/$(LIBNAME)
- $(INSTALL_DATA) $(HEADERS) $(includedir)/$(LIBNAME)
- install-lib: $(LIBRARY)
- $(INSTALL_DATA) $(LIBRARY) $(libdir)
- clean:
- -rm -f core $(OBJECTS) $(OTHERCLEAN)
- $(LIBRARY): $(OBJECTS)
- -rm -f $@
- ar q $@ $(OBJECTS)
- $(RANLIB) $(LIBRARY)
- # Local Variables:
- # mode: makefile
- # End: