Makefile

changeset 5
88625853ae74
parent 1
1bcaac272cdf
child 32
c9d37bb97ea8
equal deleted inserted replaced
4:ae5a98f0545c 5:88625853ae74
33 # suncc 33 # suncc
34 # windows 34 # windows
35 # osx 35 # osx
36 # 36 #
37 37
38 #ifndef CONF 38 CONF=gcc
39 CONF=gcc
40 #endif
41 39
42 include $(CONF).mk 40 include $(CONF).mk
43 41
44 all: build ucx dav 42 all: build/tool ucx dav
45 43
46 build: 44 build/tool:
47 mkdir build 45 mkdir -p build/tool
48 46
49 ucx: FORCE build 47 ucx: FORCE build
50 cd ucx; $(MAKE) CONF=$(CONF) all 48 cd ucx; $(MAKE) CONF=$(CONF) all
51 49
52 dav: FORCE ucx 50 dav: FORCE ucx
54 52
55 run: FORCE dav 53 run: FORCE dav
56 ./build/dav$(APP_EXT) 54 ./build/dav$(APP_EXT)
57 55
58 clean: FORCE 56 clean: FORCE
59 $(RM) $(RMFLAGS) build/*.${OBJ_EXT} 57 $(RM) $(RMFLAGS) build/*.${OBJ_EXT} build/tool/*.${OBJ_EXT}
60 58
61 FORCE: 59 FORCE:
62 60

mercurial