VM: full munmap
[minix.git] / lib / libsys / Makefile
blobff8693eca50db976ca86b853a7a71230314e5857
1 # Makefile for libsys
2 .include <bsd.own.mk>
4 LIB= sys
6 SRCS= \
7 alloc_util.c \
8 assert.c \
9 asynsend.c \
10 ds.c \
11 env_get_prm.c \
12 env_panic.c \
13 env_parse.c \
14 env_prefix.c \
15 fkey_ctl.c \
16 getsysinfo.c \
17 getuptime.c \
18 getuptime2.c \
19 input.c \
20 kernel_call.c \
21 kprintf.c \
22 kputc.c \
23 kputs.c \
24 optset.c \
25 panic.c \
26 safecopies.c \
27 sched_start.c \
28 sched_stop.c \
29 sef.c \
30 sef_init.c \
31 sef_liveupdate.c \
32 sef_ping.c \
33 sef_signal.c \
34 sqrt_approx.c \
35 stacktrace.c \
36 sys_abort.c \
37 sys_clear.c \
38 sys_cprof.c \
39 sys_endsig.c \
40 sys_exec.c \
41 sys_exit.c \
42 sys_fork.c \
43 sys_getinfo.c \
44 sys_getsig.c \
45 sys_hz.c \
46 sys_irqctl.c \
47 sys_kill.c \
48 sys_mcontext.c \
49 sys_memset.c \
50 sys_physcopy.c \
51 sys_privctl.c \
52 sys_profbuf.c \
53 sys_runctl.c \
54 sys_safecopy.c \
55 sys_safemap.c \
56 sys_schedctl.c \
57 sys_schedule.c \
58 sys_setalarm.c \
59 sys_setgrant.c \
60 sys_sigreturn.c \
61 sys_sigsend.c \
62 sys_sprof.c \
63 sys_statectl.c \
64 sys_stime.c \
65 sys_sysctl.c \
66 sys_times.c \
67 sys_trace.c \
68 sys_umap.c \
69 sys_update.c \
70 sys_vircopy.c \
71 sys_vmctl.c \
72 sys_vsafecopy.c \
73 sys_vtimer.c \
74 sys_vumap.c \
75 taskcall.c \
76 tickdelay.c \
77 timers.c \
78 vm_brk.c \
79 vm_exit.c \
80 vm_fork.c \
81 vm_info.c \
82 vm_map_phys.c \
83 vm_notify_sig.c \
84 vm_umap.c \
85 vm_yield_get_block.c \
86 vm_procctl.c \
87 vprintf.c
89 .if ${MACHINE_ARCH} == "i386"
90 SRCS+= \
91 get_randomness.c \
92 getidle.c \
93 profile.c \
94 profile_extern.c \
95 ser_putc.c \
96 spin.c \
97 sys_eniop.c \
98 sys_in.c \
99 sys_int86.c \
100 sys_out.c \
101 sys_readbios.c \
102 sys_sdevio.c \
103 sys_umap_remote.c \
104 sys_vinb.c \
105 sys_vinl.c \
106 sys_vinw.c \
107 sys_voutb.c \
108 sys_voutl.c \
109 sys_voutw.c \
110 timing.c \
111 tsc_util.c \
112 vbox.c
113 .endif
115 .if ${MKPCI} != "no"
116 SRCS+= pci_attr_r16.c \
117 pci_attr_r32.c \
118 pci_attr_r8.c \
119 pci_attr_w16.c \
120 pci_attr_w32.c \
121 pci_attr_w8.c \
122 pci_del_acl.c \
123 pci_dev_name.c \
124 pci_find_dev.c \
125 pci_first_dev.c \
126 pci_get_bar.c \
127 pci_ids.c \
128 pci_init.c \
129 pci_next_dev.c \
130 pci_rescan_bus.c \
131 pci_reserve.c \
132 pci_set_acl.c \
133 pci_slot_name.c
134 .endif
136 .if ${MKCOVERAGE} != "no"
137 SRCS+= gcov.c \
138 sef_gcov.c
139 CPPFLAGS+= -DUSE_COVERAGE
140 .endif
142 .if ${USE_LIVEUPDATE} != "no"
143 CPPFLAGS+= -DUSE_LIVEUPDATE
144 .endif
146 .if ${USE_SYSDEBUG} != "no"
147 CPPFLAGS+= -DUSE_SYSDEBUG
148 .endif
150 CPPFLAGS.sched_start.c+= -I${NETBSDSRCDIR}
152 .if (${CC} == "gcc") || (${CC} == "clang")
153 LDADD+= -lminc
154 .endif
156 .include <bsd.lib.mk>