1# Makefile for libsys 2.include <bsd.own.mk> 3 4CPPFLAGS+= -D_MINIX_SYSTEM -D_SYSTEM 5 6LIB= sys 7 8CFLAGS+= -fno-builtin 9 10.include "arch/${MACHINE_ARCH}/Makefile.inc" 11 12SRCS+= \ 13 alloc_util.c \ 14 assert.c \ 15 asynsend.c \ 16 checkperms.c \ 17 clock_time.c \ 18 copyfd.c \ 19 cpuavg.c \ 20 ds.c \ 21 env_get_prm.c \ 22 env_panic.c \ 23 env_parse.c \ 24 env_prefix.c \ 25 fkey_ctl.c \ 26 getepinfo.c \ 27 getprocnr.c \ 28 getticks.c \ 29 getsysinfo.c \ 30 getuptime.c \ 31 kernel_call.c \ 32 kprintf.c \ 33 kputc.c \ 34 kputs.c \ 35 mapdriver.c \ 36 optset.c \ 37 panic.c \ 38 proceventmask.c \ 39 safecopies.c \ 40 sched_start.c \ 41 sched_stop.c \ 42 sef.c \ 43 sef_fi.c \ 44 sef_init.c \ 45 sef_liveupdate.c \ 46 sef_llvm.c \ 47 sef_ping.c \ 48 sef_signal.c \ 49 sef_st.c \ 50 sqrt_approx.c \ 51 srv_fork.c \ 52 srv_kill.c \ 53 stacktrace.c \ 54 sys_abort.c \ 55 sys_clear.c \ 56 sys_diagctl.c \ 57 sys_endsig.c \ 58 sys_exec.c \ 59 sys_exit.c \ 60 sys_fork.c \ 61 sys_getinfo.c \ 62 sys_getsig.c \ 63 sys_hz.c \ 64 sys_irqctl.c \ 65 sys_kill.c \ 66 sys_mcontext.c \ 67 sys_memset.c \ 68 sys_padconf.c \ 69 sys_physcopy.c \ 70 sys_privctl.c \ 71 sys_runctl.c \ 72 sys_safecopy.c \ 73 sys_safememset.c \ 74 sys_schedctl.c \ 75 sys_schedule.c \ 76 sys_setalarm.c \ 77 sys_setgrant.c \ 78 sys_settime.c \ 79 sys_sigreturn.c \ 80 sys_sigsend.c \ 81 sys_sprof.c \ 82 sys_statectl.c \ 83 sys_stime.c \ 84 sys_times.c \ 85 sys_trace.c \ 86 sys_umap.c \ 87 sys_update.c \ 88 sys_vircopy.c \ 89 sys_vmctl.c \ 90 sys_vsafecopy.c \ 91 sys_vtimer.c \ 92 sys_vumap.c \ 93 taskcall.c \ 94 tickdelay.c \ 95 timers.c \ 96 vm_cache.c \ 97 vm_exit.c \ 98 vm_fork.c \ 99 vm_getrusage.c \ 100 vm_info.c \ 101 vm_map_phys.c \ 102 vm_memctl.c \ 103 vm_prepare.c \ 104 vm_procctl.c \ 105 vm_set_priv.c \ 106 vm_update.c 107 108.if ${MKPCI} != "no" 109SRCS+= pci_attr_r16.c \ 110 pci_attr_r32.c \ 111 pci_attr_r8.c \ 112 pci_attr_w16.c \ 113 pci_attr_w32.c \ 114 pci_attr_w8.c \ 115 pci_del_acl.c \ 116 pci_dev_name.c \ 117 pci_find_dev.c \ 118 pci_first_dev.c \ 119 pci_get_bar.c \ 120 pci_ids.c \ 121 pci_init.c \ 122 pci_next_dev.c \ 123 pci_rescan_bus.c \ 124 pci_reserve.c \ 125 pci_set_acl.c \ 126 pci_slot_name.c 127.endif 128 129.if ${MKCOVERAGE} != "no" 130SRCS+= gcov.c \ 131 sef_gcov.c 132CPPFLAGS+= -DUSE_COVERAGE 133.endif 134 135.if ${USE_LIVEUPDATE} != "no" 136CPPFLAGS+= -DUSE_LIVEUPDATE 137.endif 138 139.if ${USE_SYSDEBUG} != "no" 140CPPFLAGS+= -DUSE_SYSDEBUG 141.endif 142 143CPPFLAGS.sched_start.c+= -I${NETBSDSRCDIR}/minix 144CPPFLAGS.sef_st.c+= -I${NETBSDSRCDIR}/minix 145 146.include <bsd.lib.mk> 147