xref: /minix3/minix/lib/libsys/Makefile (revision f7df02e7476731c31f12548e38bcadbaf0233f6a)
1433d6423SLionel Sambuc# Makefile for libsys
2433d6423SLionel Sambuc.include <bsd.own.mk>
3433d6423SLionel Sambuc
4433d6423SLionel SambucCPPFLAGS+= -D_MINIX_SYSTEM -D_SYSTEM
5433d6423SLionel Sambuc
6433d6423SLionel SambucLIB=		sys
7433d6423SLionel Sambuc
8433d6423SLionel SambucCFLAGS+=	-fno-builtin
9433d6423SLionel Sambuc
10433d6423SLionel Sambuc.include "arch/${MACHINE_ARCH}/Makefile.inc"
11433d6423SLionel Sambuc
12433d6423SLionel SambucSRCS+=  \
13433d6423SLionel Sambuc	alloc_util.c \
14433d6423SLionel Sambuc	assert.c \
15433d6423SLionel Sambuc	asynsend.c \
16ad80a203SDavid van Moolenbroek	clock_time.c \
17491d647aSDavid van Moolenbroek	closenb.c \
18433d6423SLionel Sambuc	copyfd.c \
191f3ef2b2SDavid van Moolenbroek	cpuavg.c \
20433d6423SLionel Sambuc	ds.c	\
21433d6423SLionel Sambuc	env_get_prm.c \
22433d6423SLionel Sambuc	env_panic.c \
23433d6423SLionel Sambuc	env_parse.c \
24433d6423SLionel Sambuc	fkey_ctl.c \
25433d6423SLionel Sambuc	getepinfo.c \
26433d6423SLionel Sambuc	getprocnr.c \
27433d6423SLionel Sambuc	getticks.c \
28433d6423SLionel Sambuc	getsysinfo.c \
29433d6423SLionel Sambuc	getuptime.c \
30433d6423SLionel Sambuc	kernel_call.c \
31433d6423SLionel Sambuc	kprintf.c \
32433d6423SLionel Sambuc	kputc.c \
33433d6423SLionel Sambuc	kputs.c \
34433d6423SLionel Sambuc	mapdriver.c \
35433d6423SLionel Sambuc	optset.c \
36433d6423SLionel Sambuc	panic.c \
37910831cbSDavid van Moolenbroek	proceventmask.c \
386f3e0bcdSDavid van Moolenbroek	rmib.c \
39433d6423SLionel Sambuc	safecopies.c \
40433d6423SLionel Sambuc	sched_start.c \
41433d6423SLionel Sambuc	sched_stop.c \
42433d6423SLionel Sambuc	sef.c \
43433d6423SLionel Sambuc	sef_fi.c \
44433d6423SLionel Sambuc	sef_init.c \
45433d6423SLionel Sambuc	sef_liveupdate.c \
46d196e2c3SCristiano Giuffrida	sef_llvm.c \
47433d6423SLionel Sambuc	sef_ping.c \
48433d6423SLionel Sambuc	sef_signal.c \
49d196e2c3SCristiano Giuffrida	sef_st.c \
50*dd969671SDavid van Moolenbroek	socketpath.c \
51433d6423SLionel Sambuc	sqrt_approx.c \
52433d6423SLionel Sambuc	srv_fork.c \
53433d6423SLionel Sambuc	srv_kill.c \
54433d6423SLionel Sambuc	stacktrace.c \
55433d6423SLionel Sambuc	sys_abort.c \
56433d6423SLionel Sambuc	sys_clear.c \
57433d6423SLionel Sambuc	sys_diagctl.c \
58433d6423SLionel Sambuc	sys_endsig.c \
59433d6423SLionel Sambuc	sys_exec.c \
60433d6423SLionel Sambuc	sys_exit.c \
61433d6423SLionel Sambuc	sys_fork.c \
62433d6423SLionel Sambuc	sys_getinfo.c \
63433d6423SLionel Sambuc	sys_getsig.c \
64433d6423SLionel Sambuc	sys_hz.c \
65433d6423SLionel Sambuc	sys_irqctl.c \
66433d6423SLionel Sambuc	sys_kill.c \
67433d6423SLionel Sambuc	sys_mcontext.c \
68433d6423SLionel Sambuc	sys_memset.c \
69433d6423SLionel Sambuc	sys_padconf.c \
70433d6423SLionel Sambuc	sys_physcopy.c \
71433d6423SLionel Sambuc	sys_privctl.c \
72433d6423SLionel Sambuc	sys_runctl.c \
73433d6423SLionel Sambuc	sys_safecopy.c \
74433d6423SLionel Sambuc	sys_safememset.c \
75433d6423SLionel Sambuc	sys_schedctl.c \
76433d6423SLionel Sambuc	sys_schedule.c \
77433d6423SLionel Sambuc	sys_setalarm.c \
78433d6423SLionel Sambuc	sys_setgrant.c \
79433d6423SLionel Sambuc	sys_settime.c \
80433d6423SLionel Sambuc	sys_sigreturn.c \
81433d6423SLionel Sambuc	sys_sigsend.c \
82433d6423SLionel Sambuc	sys_sprof.c \
83433d6423SLionel Sambuc	sys_statectl.c \
84433d6423SLionel Sambuc	sys_stime.c \
85433d6423SLionel Sambuc	sys_times.c \
86433d6423SLionel Sambuc	sys_trace.c \
87433d6423SLionel Sambuc	sys_umap.c \
88433d6423SLionel Sambuc	sys_update.c \
89433d6423SLionel Sambuc	sys_vircopy.c \
90433d6423SLionel Sambuc	sys_vmctl.c \
91433d6423SLionel Sambuc	sys_vsafecopy.c \
92433d6423SLionel Sambuc	sys_vtimer.c \
93433d6423SLionel Sambuc	sys_vumap.c \
94433d6423SLionel Sambuc	taskcall.c \
95433d6423SLionel Sambuc	tickdelay.c \
96433d6423SLionel Sambuc	timers.c \
97433d6423SLionel Sambuc	vm_cache.c \
98433d6423SLionel Sambuc	vm_exit.c \
99433d6423SLionel Sambuc	vm_fork.c \
100bc2d75faSDavid van Moolenbroek	vm_getrusage.c \
101433d6423SLionel Sambuc	vm_info.c \
102433d6423SLionel Sambuc	vm_map_phys.c \
103433d6423SLionel Sambuc	vm_memctl.c \
104abf8a7e7SDavid van Moolenbroek	vm_prepare.c \
105433d6423SLionel Sambuc	vm_procctl.c \
106433d6423SLionel Sambuc	vm_set_priv.c \
107433d6423SLionel Sambuc	vm_update.c
108433d6423SLionel Sambuc
109433d6423SLionel Sambuc.if ${MKPCI} != "no"
110433d6423SLionel SambucSRCS+=	pci_attr_r16.c \
111433d6423SLionel Sambuc	pci_attr_r32.c \
112433d6423SLionel Sambuc	pci_attr_r8.c \
113433d6423SLionel Sambuc	pci_attr_w16.c \
114433d6423SLionel Sambuc	pci_attr_w32.c \
115433d6423SLionel Sambuc	pci_attr_w8.c \
116433d6423SLionel Sambuc	pci_del_acl.c \
117433d6423SLionel Sambuc	pci_dev_name.c \
118433d6423SLionel Sambuc	pci_find_dev.c \
119433d6423SLionel Sambuc	pci_first_dev.c \
120433d6423SLionel Sambuc	pci_get_bar.c \
121433d6423SLionel Sambuc	pci_ids.c \
122433d6423SLionel Sambuc	pci_init.c \
123433d6423SLionel Sambuc	pci_next_dev.c \
124433d6423SLionel Sambuc	pci_rescan_bus.c \
125433d6423SLionel Sambuc	pci_reserve.c \
126433d6423SLionel Sambuc	pci_set_acl.c \
127433d6423SLionel Sambuc	pci_slot_name.c
128433d6423SLionel Sambuc.endif
129433d6423SLionel Sambuc
130433d6423SLionel Sambuc.if ${MKCOVERAGE} != "no"
131433d6423SLionel SambucSRCS+=	gcov.c \
1323ac58492SDavid van Moolenbroek	sef_gcov.c \
1333ac58492SDavid van Moolenbroek	llvm_gcov.c
134433d6423SLionel SambucCPPFLAGS+= -DUSE_COVERAGE
135433d6423SLionel Sambuc.endif
136433d6423SLionel Sambuc
137433d6423SLionel Sambuc.if ${USE_LIVEUPDATE} != "no"
138433d6423SLionel SambucCPPFLAGS+= -DUSE_LIVEUPDATE
139433d6423SLionel Sambuc.endif
140433d6423SLionel Sambuc
141433d6423SLionel Sambuc.if ${USE_SYSDEBUG} != "no"
142433d6423SLionel SambucCPPFLAGS+= -DUSE_SYSDEBUG
143433d6423SLionel Sambuc.endif
144433d6423SLionel Sambuc
145433d6423SLionel SambucCPPFLAGS.sched_start.c+=	-I${NETBSDSRCDIR}/minix
146d196e2c3SCristiano GiuffridaCPPFLAGS.sef_st.c+=		-I${NETBSDSRCDIR}/minix
147433d6423SLionel Sambuc
148433d6423SLionel Sambuc.include <bsd.lib.mk>
149