| 22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 |
23 |
| 24 include config.mk |
24 include config.mk |
| 25 |
25 |
| 26 dist: FORCE |
26 dist: FORCE |
| 27 $(MKDIR) $(dist_dir)/libucx |
27 $(MKDIR) $(dist_dir)/libucx/ |
| 28 $(COPYALL) CHANGELOG configure COPYING Doxyfile Makefile README \ |
28 $(COPYALL) CHANGELOG configure COPYING Doxyfile Makefile README \ |
| 29 uaplogo.png make msvc src tests $(dist_dir)/libucx/ |
29 uaplogo.png make msvc src tests $(dist_dir)/libucx/ |
| 30 @cd $(dist_dir) && tar -czf ucx-$(VERSION).tar.gz -Hustar libucx |
30 @cd $(dist_dir) && tar -czf ucx-$(VERSION).tar.gz -Hustar libucx |
| 31 @echo "[ Dist created: $(dist_dir)/ucx-$(VERSION).tar.gz ]" |
31 @echo "[ Dist created: $(dist_dir)/ucx-$(VERSION).tar.gz ]" |
| 32 |
32 |
| 38 $(RMDIR) $(build_dir) |
38 $(RMDIR) $(build_dir) |
| 39 |
39 |
| 40 compile: static shared |
40 compile: static shared |
| 41 |
41 |
| 42 $(build_dir): |
42 $(build_dir): |
| 43 $(MKDIR) $@ |
43 $(MKDIR) $@/ |
| 44 |
44 |
| 45 shared: $(build_dir) FORCE |
45 shared: $(build_dir) FORCE |
| 46 @cd src && $(MAKE) OBJ_EXT=.shared.o \ |
46 @cd src && $(MAKE) OBJ_EXT=.shared.o \ |
| 47 CFLAGS="$(CFLAGS) $(SHLIB_CFLAGS)" \ |
47 CFLAGS="$(CFLAGS) $(SHLIB_CFLAGS)" \ |
| 48 LDFLAGS="$(LDFLAGS) $(SHLIB_LDFLAGS)" \ |
48 LDFLAGS="$(LDFLAGS) $(SHLIB_LDFLAGS)" \ |