src/Makefile

changeset 755
255ee4abf2ec
parent 754
4bc7d966c9db
child 765
b5128bb44459
equal deleted inserted replaced
754:4bc7d966c9db 755:255ee4abf2ec
47 $(COPYFILE) $(build_dir)/libucx$(SHLIB_EXT) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION) 47 $(COPYFILE) $(build_dir)/libucx$(SHLIB_EXT) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION)
48 $(COPYALL) $(src_dir)/src/cx $(includedir)/cx 48 $(COPYALL) $(src_dir)/src/cx $(includedir)/cx
49 $(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) 49 $(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR)
50 $(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) $(libdir)/libucx$(SHLIB_EXT) 50 $(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) $(libdir)/libucx$(SHLIB_EXT)
51 51
52 FORCE:
53
52 $(build_dir)/allocator$(OBJ_EXT): allocator.c cx/allocator.h cx/common.h 54 $(build_dir)/allocator$(OBJ_EXT): allocator.c cx/allocator.h cx/common.h
53 echo "Compiling $<" 55 @echo "Compiling $<"
54 $(CC) -o $@ $(CFLAGS) -c $< 56 $(CC) -o $@ $(CFLAGS) -c $<
55 57
56 $(build_dir)/array_list$(OBJ_EXT): array_list.c cx/array_list.h cx/list.h \ 58 $(build_dir)/array_list$(OBJ_EXT): array_list.c cx/array_list.h cx/list.h \
57 cx/common.h cx/collection.h cx/allocator.h cx/iterator.h 59 cx/common.h cx/collection.h cx/allocator.h cx/iterator.h
58 echo "Compiling $<" 60 @echo "Compiling $<"
59 $(CC) -o $@ $(CFLAGS) -c $< 61 $(CC) -o $@ $(CFLAGS) -c $<
60 62
61 $(build_dir)/buffer$(OBJ_EXT): buffer.c cx/buffer.h cx/common.h cx/allocator.h \ 63 $(build_dir)/buffer$(OBJ_EXT): buffer.c cx/buffer.h cx/common.h \
62 cx/utils.h 64 cx/allocator.h cx/utils.h
63 echo "Compiling $<" 65 @echo "Compiling $<"
64 $(CC) -o $@ $(CFLAGS) -c $< 66 $(CC) -o $@ $(CFLAGS) -c $<
65 67
66 $(build_dir)/compare$(OBJ_EXT): compare.c cx/compare.h cx/common.h 68 $(build_dir)/compare$(OBJ_EXT): compare.c cx/compare.h cx/common.h
67 echo "Compiling $<" 69 @echo "Compiling $<"
68 $(CC) -o $@ $(CFLAGS) -c $< 70 $(CC) -o $@ $(CFLAGS) -c $<
69 71
70 $(build_dir)/hash_key$(OBJ_EXT): hash_key.c cx/hash_key.h cx/common.h 72 $(build_dir)/hash_key$(OBJ_EXT): hash_key.c cx/hash_key.h cx/common.h
71 echo "Compiling $<" 73 @echo "Compiling $<"
72 $(CC) -o $@ $(CFLAGS) -c $< 74 $(CC) -o $@ $(CFLAGS) -c $<
73 75
74 $(build_dir)/hash_map$(OBJ_EXT): hash_map.c cx/hash_map.h cx/map.h cx/common.h \ 76 $(build_dir)/hash_map$(OBJ_EXT): hash_map.c cx/hash_map.h cx/map.h \
75 cx/collection.h cx/allocator.h cx/iterator.h cx/string.h cx/hash_key.h \ 77 cx/common.h cx/collection.h cx/allocator.h cx/iterator.h cx/string.h \
76 cx/utils.h 78 cx/hash_key.h cx/utils.h
77 echo "Compiling $<" 79 @echo "Compiling $<"
78 $(CC) -o $@ $(CFLAGS) -c $< 80 $(CC) -o $@ $(CFLAGS) -c $<
79 81
80 $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h cx/common.h \ 82 $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h \
81 cx/list.h cx/collection.h cx/allocator.h cx/iterator.h cx/utils.h 83 cx/common.h cx/list.h cx/collection.h cx/allocator.h cx/iterator.h \
82 echo "Compiling $<" 84 cx/utils.h
85 @echo "Compiling $<"
83 $(CC) -o $@ $(CFLAGS) -c $< 86 $(CC) -o $@ $(CFLAGS) -c $<
84 87
85 $(build_dir)/list$(OBJ_EXT): list.c cx/list.h cx/common.h cx/collection.h \ 88 $(build_dir)/list$(OBJ_EXT): list.c cx/list.h cx/common.h cx/collection.h \
86 cx/allocator.h cx/iterator.h 89 cx/allocator.h cx/iterator.h
87 echo "Compiling $<" 90 @echo "Compiling $<"
88 $(CC) -o $@ $(CFLAGS) -c $< 91 $(CC) -o $@ $(CFLAGS) -c $<
89 92
90 $(build_dir)/map$(OBJ_EXT): map.c cx/map.h cx/common.h cx/collection.h \ 93 $(build_dir)/map$(OBJ_EXT): map.c cx/map.h cx/common.h cx/collection.h \
91 cx/allocator.h cx/iterator.h cx/string.h cx/hash_key.h 94 cx/allocator.h cx/iterator.h cx/string.h cx/hash_key.h
92 echo "Compiling $<" 95 @echo "Compiling $<"
93 $(CC) -o $@ $(CFLAGS) -c $< 96 $(CC) -o $@ $(CFLAGS) -c $<
94 97
95 $(build_dir)/mempool$(OBJ_EXT): mempool.c cx/mempool.h cx/common.h cx/allocator.h \ 98 $(build_dir)/mempool$(OBJ_EXT): mempool.c cx/mempool.h cx/common.h \
96 cx/utils.h 99 cx/allocator.h cx/utils.h
97 echo "Compiling $<" 100 @echo "Compiling $<"
98 $(CC) -o $@ $(CFLAGS) -c $< 101 $(CC) -o $@ $(CFLAGS) -c $<
99 102
100 $(build_dir)/printf$(OBJ_EXT): printf.c cx/printf.h cx/common.h cx/string.h \ 103 $(build_dir)/printf$(OBJ_EXT): printf.c cx/printf.h cx/common.h \
101 cx/allocator.h 104 cx/string.h cx/allocator.h
102 echo "Compiling $<" 105 @echo "Compiling $<"
103 $(CC) -o $@ $(CFLAGS) -c $< 106 $(CC) -o $@ $(CFLAGS) -c $<
104 107
105 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h cx/allocator.h \ 108 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \
106 cx/utils.h 109 cx/allocator.h cx/utils.h
107 echo "Compiling $<" 110 @echo "Compiling $<"
111 $(CC) -o $@ $(CFLAGS) -c $<
112
113 $(build_dir)/szmul$(OBJ_EXT): szmul.c
114 @echo "Compiling $<"
108 $(CC) -o $@ $(CFLAGS) -c $< 115 $(CC) -o $@ $(CFLAGS) -c $<
109 116
110 $(build_dir)/utils$(OBJ_EXT): utils.c cx/utils.h cx/common.h 117 $(build_dir)/utils$(OBJ_EXT): utils.c cx/utils.h cx/common.h
111 echo "Compiling $<" 118 @echo "Compiling $<"
112 $(CC) -o $@ $(CFLAGS) -c $< 119 $(CC) -o $@ $(CFLAGS) -c $<
113 120

mercurial