Makefile

changeset 754
4bc7d966c9db
parent 753
24dc84788dee
child 755
255ee4abf2ec
equal deleted inserted replaced
753:24dc84788dee 754:4bc7d966c9db
24 include config.mk 24 include config.mk
25 25
26 all: compile 26 all: compile
27 27
28 install: 28 install:
29 @cd src && $(MAKE) -s install 29 @cd src && $(MAKE) install
30 30
31 dist: FORCE 31 dist: FORCE
32 $(MKDIR) $(DIST_DIR)/libucx 32 $(MKDIR) $(dist_dir)/libucx
33 $(COPYALL) CHANGELOG configure COPYING Doxyfile Makefile README \ 33 $(COPYALL) CHANGELOG configure COPYING Doxyfile Makefile README \
34 uaplogo.png docs make src tests $(DIST_DIR)/libucx/ 34 uaplogo.png docs make src tests $(dist_dir)/libucx/
35 @cd $(DIST_DIR) && tar -czf libucx-src-$(VERSION).tar.gz -Hustar libucx 35 @cd $(dist_dir) && tar -czf libucx-src-$(VERSION).tar.gz -Hustar libucx
36 @echo "[ Dist created: $(DIST_DIR)/libucx-src-$(VERSION).tar.gz ]" 36 @echo "[ Dist created: $(dist_dir)/libucx-src-$(VERSION).tar.gz ]"
37 37
38 clean: 38 clean:
39 $(RMDIR) $(BUILD_DIR) 39 $(RMDIR) $(build_dir)
40 40
41 dist-clean: 41 dist-clean:
42 $(RMDIR) $(DIST_DIR) 42 $(RMDIR) $(dist_dir)
43 $(RMDIR) $(BUILD_DIR) 43 $(RMDIR) $(build_dir)
44 44
45 compile: $(BUILD_DIR) static shared 45 compile: $(build_dir) static shared
46 46
47 $(BUILD_DIR): 47 $(build_dir):
48 $(MKDIR) $@ 48 $(MKDIR) $@
49 49
50 shared: FORCE 50 shared: FORCE
51 @cd src && $(MAKE) OBJ_EXT=.shared.o \ 51 @cd src && $(MAKE) OBJ_EXT=.shared.o \
52 CFLAGS="$(CFLAGS) $(SHLIB_CFLAGS)" \ 52 CFLAGS="$(CFLAGS) $(SHLIB_CFLAGS)" \
55 55
56 static: FORCE 56 static: FORCE
57 @cd src && $(MAKE) static 57 @cd src && $(MAKE) static
58 58
59 check: test-compile FORCE 59 check: test-compile FORCE
60 $(BUILD_DIR)/tests/ucxtest 60 $(build_dir)/tests/ucxtest
61 61
62 test-compile: 62 test-compile:
63 @(test "$(WITH_TESTS)" = "yes" && cd tests && $(MAKE)) \ 63 @(test "$(WITH_TESTS)" = "yes" && cd tests && $(MAKE)) \
64 || echo "[ Tests disabled - skipped ]" 64 || echo "[ Tests disabled - skipped ]"
65 65

mercurial