Makefile

changeset 155
45395ba5ed30
parent 154
8346aebfbb7b
child 156
6a4bd1f4c57e
equal deleted inserted replaced
154:8346aebfbb7b 155:45395ba5ed30
27 # 27 #
28 28
29 29
30 # 30 #
31 # available configurations: 31 # available configurations:
32 # clang, clang-debug 32 # clang
33 # gcc, gcc-debug 33 # gcc
34 # g++, g++-debug 34 # g++
35 # osx, osx-debug 35 # osx
36 # suncc, suncc-debug 36 # suncc
37 # windows 37 # windows
38 # 38 #
39 39
40 CONF=gcc 40 CONF=gcc
41 PREFIX=/usr/local 41 PREFIX=/usr/local
42 42
43 include unix.mk
44 include $(CONF).mk 43 include $(CONF).mk
45 44
46 all: ucx test 45 all: ucx test
47 46
48 ucx: FORCE 47 ucx: FORCE
49 cd ucx; $(MAKE) CONF=$(CONF) all 48 cd ucx; $(MAKE) CONF=$(CONF)
49
50 ucx-debug: FORCE
51 cd ucx; $(MAKE) CONF=$(CONF) debug
50 52
51 test: FORCE ucx 53 test: FORCE ucx
52 cd test; $(MAKE) CONF=$(CONF) all 54 cd test; $(MAKE) CONF=$(CONF)
55
56 test-debug: FORCE ucx-debug
57 cd test; $(MAKE) CONF=$(CONF) debug
53 58
54 run: FORCE test 59 run: FORCE test
55 ./build/test$(APP_EXT) 60 ./build/release/test/ucxtest$(APP_EXT)
61
62 run-debug: FORCE test-debug
63 ./build/debug/test/ucxtest$(APP_EXT)
64
65 debug: ucx-debug test-debug
56 66
57 install: ucx $(PREFIX)/lib $(PREFIX)/include/ucx 67 install: ucx $(PREFIX)/lib $(PREFIX)/include/ucx
58 cp ./build/libucx$(LIB_EXT) $(PREFIX)/lib && \ 68 cp ./build/release/libucx$(LIB_EXT) $(PREFIX)/lib && \
59 cp ./ucx/*.h $(PREFIX)/include/ucx 69 cp ./ucx/*.h $(PREFIX)/include/ucx
60 70
61 uninstall: 71 uninstall:
62 $(RM) $(RMFLAGS) $(PREFIX)/include/ucx &&\ 72 $(RM) $(RMFLAGS) $(PREFIX)/include/ucx &&\
63 $(RM) $(RMFLAGS) $(PREFIX)/lib/libucx$(LIB_EXT) 73 $(RM) $(RMFLAGS) $(PREFIX)/lib/libucx$(LIB_EXT)

mercurial