buildsys  Diff

Differences From Artifact [6dfc55ed86]:

To Artifact [d0c28d5990]:


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
121
122
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
121
122
123
124
125
126
127
128
129
130
131







-
-
+
+


-
+
















+

-
-
+
+
+
+
+
+
+
+
+


-
-
-
+
+
+


-
+








+







mansubdir ?= man1

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}
OBJS6 = ${OBJS5:.m=.o}
OBJS += ${OBJS6:.xpm=.o}

.SILENT:
.SUFFIXES: .beam .c .cc .cxx .d .dep .erl .m
.SUFFIXES: .beam .c .cc .cxx .d .dep .erl .m .xpm
.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; \
	deps=""; \
	test -f .deps || regen=1; \
	for i in ${SRCS}; do test $$i -nt .deps && regen=1; done; \
	if test x"$$regen" = x"1" -a x"${DEPS}" != "x"; then \
	for i in ${SRCS}; do \
		case $$i in \
			*.o) \
				test $$i -nt .deps && regen=1; \
				deps="$${deps%.o}.dep $$i"; \
				;; \
		esac; \
	done; \
	if test x"$$regen" = x"1" -a x"$$deps" != "x"; then \
		${DEPEND_STATUS}; \
		rm -f .deps; \
		if ${MAKE} ${MFLAGS} ${DEPS}; then \
			cat ${DEPS} >.deps; \
			rm -f ${DEPS}; \
		if ${MAKE} ${MFLAGS} $$deps; then \
			cat $$deps >.deps; \
			rm -f $$deps; \
			${DEPEND_OK}; \
		else \
			rm -f .deps ${DEPS}; \
			rm -f .deps $$deps; \
			${DEPEND_FAILED}; \
		fi; \
	fi

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

.d.dep:
.xpm.dep:

pre-depend:

${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS}
	${LINK_STATUS}
	if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \
		${LINK_OK}; \
188
189
190
191
192
193
194








195
196
197
198
199
200
201
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218







+
+
+
+
+
+
+
+







		${COMPILE_FAILED}; \
	fi

.m.o:
	${COMPILE_STATUS}
	if ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c -o $@ $<; then \
		${COMPILE_OK}; \
	else \
		${COMPILE_FAILED}; \
	fi

.xpm.o:
	${COMPILE_STATUS}
	if ${CC} ${CFLAGS} ${CPPFLAGS} -x c -c -o $@ $<; then \
		${COMPILE_OK}; \
	else \
		${COMPILE_FAILED}; \
	fi

install: ${LIB} ${STATIC_LIB} ${PLUGIN} ${PROG} install-extra
	for i in ${SUBDIRS}; do \
		${DIR_ENTER}; \