buildsys  Check-in [4780df5f05]

Overview
Comment:Fix dependencies and other parallel stuff.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4780df5f058c7d51fdc8260a8c431c960f0fa863b8ba329614e8eff1b4d8d710
User & Date: js on 2007-09-24 18:20:35
Other Links: manifest | tags
Context
2007-09-24
18:45
Always prefix comparisons with x. check-in: 1d055c3b0b user: js tags: trunk
18:20
Fix dependencies and other parallel stuff. check-in: 4780df5f05 user: js tags: trunk
18:00
Add depend status. check-in: d21b1a6b92 user: js tags: trunk
Changes

Modified buildsys.mk.in from [19949e1531] to [234e02d916].

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
OBJS5 = ${OBJS4:.erl=.beam}
OBJS += ${OBJS5:.m=.o}

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


all: subdirs depend ${OBJS} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${LIB} ${LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST}



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

depend: pre-depend ${SRCS}
	regen=0; \
	for i in ${SRCS}; do [ $$i -nt .deps ] && regen=1; done; \
	if [ $$regen = 1 ]; then \

		${DEPEND_STATUS}; \
		rm -f .deps; \
		for i in ${SRCS}; do \
			case $${i##*.} in \
			c|cc|cxx|m) \
				if ${CPP} ${CPPFLAGS} -M $$i >>.deps; then \




					${DEPEND_OK}; \
				else \
					${DEPEND_FAILED}; \
				fi; \
			esac; \
		done; \
	fi

pre-depend:

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







>
|
>
>












>





|
>
>
>
>
|
|
|
|
<
<







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
OBJS5 = ${OBJS4:.erl=.beam}
OBJS += ${OBJS5:.m=.o}

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

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

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

depend: pre-depend ${SRCS}
	regen=0; \
	for i in ${SRCS}; do [ $$i -nt .deps ] && regen=1; done; \
	if [ $$regen = 1 ]; then \
		error=0; \
		${DEPEND_STATUS}; \
		rm -f .deps; \
		for i in ${SRCS}; do \
			case $${i##*.} in \
			c|cc|cxx|m) \
				${CPP} ${CPPFLAGS} -M $$i >>.deps || error=1; \
				;; \
			esac; \
		done; \
		if [ $$error = 0 ]; then \
			${DEPEND_OK}; \
		else \
			${DEPEND_FAILED}; \
		fi; \


	fi

pre-depend:

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