rules.mk

changeset 9
55e7f2ff6021
parent 8
c1994196683f
child 17
a034888a2227
equal deleted inserted replaced
8:c1994196683f 9:55e7f2ff6021
37 endif 37 endif
38 38
39 ###################################### 39 ######################################
40 40
41 .c.o: 41 .c.o:
42 $(CC) $(CC_FLAGS) -c $< -o $@ 42 $(CC) $(CFLAGS) -c $< -o $@
43 43
44 _clean: 44 _clean:
45 rm -f core $(OBJS) $(DEPEND_FILE) 45 rm -f core $(OBJS) $(DEPEND_FILE)
46 46
47 _realclean: _clean 47 _realclean: _clean
51 $(MAKE_DEPEND) *.c 51 $(MAKE_DEPEND) *.c
52 52
53 ###################################### 53 ######################################
54 54
55 subdirs: 55 subdirs:
56 set -e; for i in $$(SUBDIRS); do $(MAKE) -C $$i; done 56 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done
57 57
58 subdirs-depend: 58 subdirs-depend:
59 set -e; for i in $$(SUBDIRS); do $(MAKE) -C $$i depend; done 59 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i depend; done
60 60
61 subdirs-clean: 61 subdirs-clean:
62 set -e; for i in $$(SUBDIRS); do $(MAKE) -C $$i clean; done 62 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
63 63
64 subdirs-realclean: 64 subdirs-realclean:
65 set -e; for i in $$(SUBDIRS); do $(MAKE) -C $$i realclean; done 65 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i realclean; done
66 66
67 subdirs-install: 67 subdirs-install:
68 set -e; for i in $$(INSTALL_SUBDIRS); do $(MAKE) -C $$i install; done 68 set -e; for i in $(INSTALL_SUBDIRS); do $(MAKE) -C $$i install; done
69 69
70 ###################################### 70 ######################################
71 71
72 ifeq ($(DEPEND_FILE),$(wildcard $(DEPEND_FILE))) 72 ifeq ($(DEPEND_FILE),$(wildcard $(DEPEND_FILE)))
73 include $(DEPEND_FILE) 73 include $(DEPEND_FILE)

mercurial