buildsys  Check-in [5b7cb4481a]

Overview
Comment:Make dependency generation threaded.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5b7cb4481a6e36c962cd150ae0e0820b82053b5dcd9f5ffe18d5b7cd542e94dc
User & Date: js on 2008-02-10 09:20:32
Other Links: manifest | tags
Context
2008-02-10
09:40
Fix a few bugs in threaded dependency generation. check-in: 1e6ad9ea9d user: js tags: trunk
09:20
Make dependency generation threaded. check-in: 5b7cb4481a user: js tags: trunk
2007-11-08
15:08
Partially revert 004bf2fb49e3. check-in: 0e7df1ff56 user: js tags: trunk
Changes

Modified buildsys.mk.in from [16b538e090] to [6a2bdce5a4].

68
69
70
71
72
73
74

75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

110
111
112
113





114
115
116
117
118
119
120

OBJS1 = ${SRCS:.c=.o}
OBJS2 = ${OBJS1:.cc=.o}
OBJS3 = ${OBJS2:.cxx=.o}
OBJS4 = ${OBJS3:.d=.o}
OBJS5 = ${OBJS4:.erl=.beam}
OBJS += ${OBJS5:.m=.o}


.SILENT:
.SUFFIXES: .beam .c .cc .cxx .d .erl .m
.PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean

all:
	for i in subdirs depend ${STATIC_LIB} ${STATIC_LIB_NOINST} ${LIB} ${LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST}; do \
		${MAKE} ${MFLAGS} $$i || exit 1; \
	done

subdirs:
	for i in ${SUBDIRS}; do \
		${DIR_ENTER}; \
		${MAKE} ${MFLAGS} || exit 1; \
		${DIR_LEAVE}; \
	done

depend: pre-depend ${SRCS}
	regen=0; \
	test -f .deps || regen=1; \
	for i in ${SRCS}; do test $$i -nt .deps && regen=1; done; \
	if test x"$$regen" = x"1"; then \
		list=""; \
		${DEPEND_STATUS}; \
		for i in ${SRCS}; do \
			case $${i##*.} in \
			c|cc|cxx|m) \
				list="$$list $$i"; \
				;; \
			esac; \
		done; \
		if test x"$$list" != "x"; then \
			if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \
				${DEPEND_OK}; \
			else \

				${DEPEND_FAILED}; \
			fi; \
		fi; \
	fi






pre-depend:

${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS}
	${LINK_STATUS}
	if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \
		${LINK_OK}; \







>


|



















<

<
<
<
<
|
<
<
|
<
|
|
>
|
|
<

>
>
>
>
>







68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97

98




99


100

101
102
103
104
105

106
107
108
109
110
111
112
113
114
115
116
117
118

OBJS1 = ${SRCS:.c=.o}
OBJS2 = ${OBJS1:.cc=.o}
OBJS3 = ${OBJS2:.cxx=.o}
OBJS4 = ${OBJS3:.d=.o}
OBJS5 = ${OBJS4:.erl=.beam}
OBJS += ${OBJS5:.m=.o}
DEPS += ${OBJS:.o=.dep}

.SILENT:
.SUFFIXES: .beam .c .cc .cxx .d .dep .erl .m
.PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean

all:
	for i in subdirs depend ${STATIC_LIB} ${STATIC_LIB_NOINST} ${LIB} ${LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST}; do \
		${MAKE} ${MFLAGS} $$i || exit 1; \
	done

subdirs:
	for i in ${SUBDIRS}; do \
		${DIR_ENTER}; \
		${MAKE} ${MFLAGS} || exit 1; \
		${DIR_LEAVE}; \
	done

depend: pre-depend ${SRCS}
	regen=0; \
	test -f .deps || regen=1; \
	for i in ${SRCS}; do test $$i -nt .deps && regen=1; done; \
	if test x"$$regen" = x"1"; then \

		${DEPEND_STATUS}; \




		rm -f .deps; \


		if ${MAKE} ${MFLAGS} ${DEPS}; then \

			${DEPEND_OK}; \
		else \
			rm -f .deps; \
			${DEPEND_FAILED}; \
		fi; \

	fi

.c.dep .cc.dep .cxx.dep .m.dep:
	${CPP} ${CPPFLAGS} -M $< >>.deps

.d.dep:

pre-depend:

${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS}
	${LINK_STATUS}
	if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \
		${LINK_OK}; \