]>
Commit | Line | Data |
---|---|---|
5b0a4722 | 1 | AM_CFLAGS = -no-cpp-precomp -F/System/Library/PrivateFrameworks -Wall -Wextra -Waggregate-return -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror -D__MigTypeCheck=1 -fvisibility=hidden -Dmig_external=__private_extern__ |
e91b9f68 | 2 | |
5b0a4722 A |
3 | CLEANFILES = protocol_vproc.h protocol_vprocServer.c protocol_vprocUser.c protocol_vprocServer.h \ |
4 | launchd_internal.h launchd_internalServer.h launchd_internalServer.c launchd_internalUser.c \ | |
5 | notifyServer.c notifyServer.h job_replyUser.c job_reply.h __version.c | |
ed34e3c3 | 6 | |
5b0a4722 A |
7 | protocol_vproc.h protocol_vprocServer.c protocol_vprocUser.c protocol_vprocServer.h: $(srcdir)/protocol_job.defs |
8 | mig $(MIGFLAGS) -sheader protocol_vprocServer.h $(srcdir)/protocol_job.defs | |
ed34e3c3 A |
9 | |
10 | if LIBS_ONLY | |
e91b9f68 A |
11 | |
12 | noinst_LIBRARIES = liblaunch.a liblaunch_profile.a | |
13 | ||
5b0a4722 A |
14 | liblaunch_a_CFLAGS = -D__DARWIN_NON_CANCELABLE=1 $(AM_CFLAGS) |
15 | liblaunch_a_SOURCES = liblaunch.c libvproc.c libbootstrap.c protocol_vprocUser.c __version.c | |
e91b9f68 | 16 | |
5b0a4722 A |
17 | liblaunch_profile_a_CFLAGS = -pg -D__DARWIN_NON_CANCELABLE=1 $(AM_CFLAGS) |
18 | liblaunch_profile_a_SOURCES = liblaunch.c libvproc.c libbootstrap.c protocol_vprocUser.c __version.c | |
19 | ||
20 | $(srcdir)/libvproc.c:: protocol_vproc.h | |
21 | ||
22 | $(srcdir)/protocol_vprocUser.c:: protocol_vproc.h | |
23 | ||
24 | __version.c: | |
25 | /Developer/Makefiles/bin/version.pl launchd_libs > $@ | |
e91b9f68 | 26 | |
e91b9f68 | 27 | |
ed34e3c3 A |
28 | install-data-hook: |
29 | mkdir -p $(DESTDIR)/usr/local/lib/system | |
30 | cp liblaunch.a $(DESTDIR)/usr/local/lib/system | |
31 | cp liblaunch.a $(DESTDIR)/usr/local/lib/system/liblaunch_debug.a | |
32 | cp liblaunch_profile.a $(DESTDIR)/usr/local/lib/system/liblaunch_profile.a | |
e91b9f68 | 33 | |
ed34e3c3 | 34 | else |
e91b9f68 | 35 | |
ed34e3c3 A |
36 | bin_PROGRAMS = launchctl wait4path |
37 | sbin_PROGRAMS = launchd SystemStarter | |
38 | libexec_PROGRAMS = launchproxy | |
e91b9f68 | 39 | |
5b0a4722 | 40 | sysconf_DATA = hostconfig rc.common rc.netboot |
e91b9f68 | 41 | |
5b0a4722 A |
42 | launchctl_CFLAGS = $(AM_CFLAGS) -I/System/Library/Frameworks/System.framework/PrivateHeaders |
43 | launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -framework Security -weak_library /usr/lib/libedit.dylib | |
ed34e3c3 | 44 | |
5b0a4722 A |
45 | SystemStarter_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) |
46 | SystemStarter_LDFLAGS = -framework CoreFoundation -framework IOKit | |
e91b9f68 A |
47 | SystemStarter_SOURCES = StartupItems.c IPC.c SystemStarter.c |
48 | ||
5b0a4722 | 49 | launchd_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) -Wno-unused-parameter |
e91b9f68 | 50 | launchd_LDFLAGS = -lbsm |
5b0a4722 | 51 | launchd_SOURCES = launchd.c launchd_core_logic.c launchd_unix_ipc.c protocol_vprocServer.c notifyServer.c launchd_internalUser.c launchd_internalServer.c job_replyUser.c launchd_runtime.c launchd_runtime_kill.c |
ed34e3c3 | 52 | |
5b0a4722 A |
53 | launchd_runtime.c:: notifyServer.h launchd_internal.h |
54 | launchd_core_logic.c:: protocol_vproc.h job_reply.h protocol_vprocServer.h | |
e91b9f68 A |
55 | |
56 | launchproxy_LDFLAGS = -weak_framework Security | |
57 | ||
ed34e3c3 A |
58 | notifyServer.c notifyServer.h: /usr/include/mach/notify.defs |
59 | mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader notifyServer.h /usr/include/mach/notify.defs | |
e91b9f68 | 60 | |
5b0a4722 A |
61 | job_replyUser.c job_reply.h: $(srcdir)/protocol_job_reply.defs |
62 | mig $(MIGFLAGS) -sheader /dev/null -server /dev/null $(srcdir)/protocol_job_reply.defs | |
ed34e3c3 A |
63 | |
64 | launchd_internal.h launchd_internalServer.c launchd_internalUser.c launchd_internalServer.h: $(srcdir)/launchd_internal.defs | |
65 | mig $(MIGFLAGS) -sheader launchd_internalServer.h $(srcdir)/launchd_internal.defs | |
e91b9f68 | 66 | |
e91b9f68 A |
67 | |
68 | man1_MANS = wait4path.1 launchctl.1 | |
69 | ||
70 | man5_MANS = launchd.plist.5 launchd.conf.5 | |
71 | ||
5b0a4722 | 72 | man8_MANS = StartupItemContext.8 SystemStarter.8 rc.8 launchd.8 launchproxy.8 |
e91b9f68 | 73 | |
5b0a4722 | 74 | install-data-hook: |
ed34e3c3 | 75 | mkdir -p $(DESTDIR)/usr/libexec |
ed34e3c3 | 76 | mkdir -p $(DESTDIR)/usr/include/servers |
e91b9f68 | 77 | mkdir -p $(DESTDIR)/usr/local/include |
e91b9f68 A |
78 | mkdir -p $(DESTDIR)/$(sysconfdir)/mach_init.d |
79 | mkdir -p $(DESTDIR)/$(sysconfdir)/mach_init_per_user.d | |
5b0a4722 | 80 | mkdir -p $(DESTDIR)/$(sysconfdir)/mach_init_per_login_session.d |
e91b9f68 A |
81 | mkdir -p $(DESTDIR)/Library/LaunchDaemons |
82 | mkdir -p $(DESTDIR)/Library/LaunchAgents | |
e91b9f68 | 83 | mkdir -p $(DESTDIR)/System/Library/LaunchAgents |
5b0a4722 A |
84 | mkdir -p $(DESTDIR)/System/Library/LaunchDaemons |
85 | cp $(srcdir)/StartupItemContext $(DESTDIR)/usr/libexec | |
86 | cp $(srcdir)/liblaunch_public.h $(DESTDIR)/usr/include/launch.h | |
87 | cp $(srcdir)/libvproc_public.h $(DESTDIR)/usr/include/vproc.h | |
88 | cp $(srcdir)/libbootstrap_public.h $(DESTDIR)/usr/include/servers/bootstrap.h | |
89 | cp $(srcdir)/libbootstrap_public.h $(DESTDIR)/usr/include/servers/bootstrap_defs.h | |
90 | cp $(srcdir)/libbootstrap_private.h $(DESTDIR)/usr/local/include/bootstrap_priv.h | |
91 | cp $(srcdir)/liblaunch_private.h $(DESTDIR)/usr/local/include/launch_priv.h | |
92 | cp $(srcdir)/libvproc_private.h $(DESTDIR)/usr/local/include/vproc_priv.h | |
93 | cp $(srcdir)/reboot2.h $(DESTDIR)/usr/local/include/reboot2.h | |
94 | cp $(srcdir)/com.apple.SystemStarter.plist $(DESTDIR)/System/Library/LaunchDaemons | |
e91b9f68 | 95 | |
ed34e3c3 | 96 | endif |