~jamesodhunt/upstart/async-spawn.20140310

« back to all changes in this revision

Viewing changes to init/Makefile.am

temporary commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        -DCONFDIR="\"$(initconfdir)\"" \
17
17
        -DSBINDIR="\"$(sbindir)\"" \
18
18
        -I$(top_builddir) -I$(top_srcdir) -iquote$(builddir) -iquote$(srcdir) \
19
 
        -I$(top_srcdir)/intl
20
 
 
 
19
        -I$(top_srcdir)/intl \
 
20
        -I$(top_srcdir)/test -iquote$(top_srcdir)/test
21
21
 
22
22
dist_man_MANS = \
23
23
        man/init.8 \
142
142
        $(TEST_DATA_DIR)/upstart-1.8+apparmor.json \
143
143
        $(TEST_DATA_DIR)/upstart-1.8+full_serialisation+apparmor.json
144
144
 
 
145
 
145
146
test_util_SOURCES = \
146
147
        tests/test_util.c tests/test_util.h
 
148
test_util_LDADD = \
 
149
        $(top_builddir)/test/libtest_util_common.a
147
150
 
148
151
TESTS = \
149
152
        test_system \
161
164
        test_parse_conf \
162
165
        test_conf_static \
163
166
        test_xdg \
164
 
        test_control
 
167
        test_control \
 
168
        test_main
165
169
 
166
170
EXTRA_DIST = init.supp $(TEST_DATA_FILES) tests/test_conf_preload.sh.in
167
171
 
187
191
        environ.o \
188
192
        $(NIH_LIBS)
189
193
 
190
 
test_process_SOURCES = tests/test_process.c $(test_util_SOURCES)
 
194
test_process_SOURCES = tests/test_process.c
191
195
test_process_LDADD = \
192
196
        system.o environ.o process.o \
193
197
        job_class.o job_process.o job.o event.o event_operator.o blocked.o \
195
199
        session.o log.o state.o xdg.o apparmor.o \
196
200
        com.ubuntu.Upstart.o \
197
201
        com.ubuntu.Upstart.Job.o com.ubuntu.Upstart.Instance.o \
 
202
        $(top_builddir)/test/libtest_util_common.a \
198
203
        $(NIH_LIBS) \
199
204
        $(NIH_DBUS_LIBS) \
200
205
        $(DBUS_LIBS) \
215
220
        $(JSON_LIBS) \
216
221
        -lrt
217
222
 
218
 
test_job_process_SOURCES = tests/test_job_process.c $(test_util_SOURCES)
 
223
test_job_process_SOURCES = tests/test_job_process.c
219
224
test_job_process_LDADD = \
220
225
        system.o environ.o process.o \
221
226
        job_class.o job_process.o job.o event.o event_operator.o blocked.o \
223
228
        session.o log.o state.o xdg.o apparmor.o \
224
229
        com.ubuntu.Upstart.o \
225
230
        com.ubuntu.Upstart.Job.o com.ubuntu.Upstart.Instance.o \
 
231
        $(top_builddir)/test/libtest_util_common.a \
226
232
        $(NIH_LIBS) \
227
233
        $(NIH_DBUS_LIBS) \
228
234
        $(DBUS_LIBS) \
243
249
        $(JSON_LIBS) \
244
250
        -lrt
245
251
 
246
 
test_log_SOURCES = tests/test_log.c $(test_util_SOURCES)
 
252
test_log_SOURCES = tests/test_log.c
247
253
test_log_LDADD = \
248
254
        system.o environ.o process.o \
249
255
        job_class.o job_process.o job.o event.o event_operator.o blocked.o \
251
257
        session.o log.o state.o xdg.o apparmor.o \
252
258
        com.ubuntu.Upstart.o \
253
259
        com.ubuntu.Upstart.Job.o com.ubuntu.Upstart.Instance.o \
 
260
        $(top_builddir)/test/libtest_util_common.a \
254
261
        $(NIH_LIBS) \
255
262
        $(NIH_DBUS_LIBS) \
256
263
        $(DBUS_LIBS) \
265
272
        session.o log.o state.o xdg.o apparmor.o \
266
273
        com.ubuntu.Upstart.o \
267
274
        com.ubuntu.Upstart.Job.o com.ubuntu.Upstart.Instance.o \
 
275
        $(top_builddir)/test/libtest_util_common.a \
268
276
        $(NIH_LIBS) \
269
277
        $(NIH_DBUS_LIBS) \
270
278
        $(DBUS_LIBS) \
346
354
tests_libwrap_inotify_la_LIBADD = -lrt -ldl $(AM_LIBADD)
347
355
tests_libwrap_inotify_la_LDFLAGS = avoid-version -module -shared -export-dynamic -rpath /nowhere -ldl
348
356
 
349
 
test_conf_SOURCES = tests/test_conf.c $(test_util_SOURCES) $(check_LTLIBRARIES)
 
357
test_conf_SOURCES = tests/test_conf.c $(check_LTLIBRARIES)
350
358
test_conf_LDADD = \
351
359
        system.o environ.o process.o \
352
360
        job_class.o job_process.o job.o event.o event_operator.o blocked.o \
354
362
        session.o log.o state.o xdg.o apparmor.o \
355
363
        com.ubuntu.Upstart.o \
356
364
        com.ubuntu.Upstart.Job.o com.ubuntu.Upstart.Instance.o \
 
365
        $(top_builddir)/test/libtest_util_common.a \
357
366
        $(NIH_LIBS) \
358
367
        $(NIH_DBUS_LIBS) \
359
368
        $(DBUS_LIBS) \
395
404
        $(JSON_LIBS) \
396
405
        -lrt
397
406
 
 
407
test_main_SOURCES = tests/test_main.c
 
408
test_main_LDADD = \
 
409
        system.o environ.o process.o \
 
410
        job_class.o job_process.o job.o event.o event_operator.o blocked.o \
 
411
        parse_job.o parse_conf.o conf.o control.o quiesce.o \
 
412
        session.o log.o state.o xdg.o \
 
413
        com.ubuntu.Upstart.o \
 
414
        com.ubuntu.Upstart.Job.o com.ubuntu.Upstart.Instance.o \
 
415
        $(top_builddir)/test/libtest_util_common.a \
 
416
        $(NIH_LIBS) \
 
417
        $(NIH_DBUS_LIBS) \
 
418
        $(DBUS_LIBS) \
 
419
        $(JSON_LIBS) \
 
420
        -lrt
398
421
 
399
422
install-data-local:
400
423
        $(MKDIR_P) $(DESTDIR)$(initconfdir)