1 1.13 isaki # $NetBSD: Makefile,v 1.13 2013/05/26 05:52:13 isaki Exp $ 2 1.1 itohy 3 1.1 itohy LIB= dos 4 1.1 itohy 5 1.6 tv NOLINT=# defined 6 1.6 tv NOPROFILE=# defined 7 1.6 tv NOPIC=# defined 8 1.1 itohy 9 1.9 tsutsui .include "../Makefile.booters" 10 1.9 tsutsui 11 1.9 tsutsui CPPFLAGS+= -I${.CURDIR} -I. 12 1.1 itohy 13 1.4 itohy SRCS= dos_rename.S 14 1.4 itohy SRCS+= dos_cerror.S dos_procerr.S dos_errno.c dos_strerror.S 15 1.1 itohy CLEANFILES+= dos_strerror.S 16 1.1 itohy 17 1.13 isaki ASM= exit.S getchar.S putchar.S cominp.S comout.S prnout.S inpout.S \ 18 1.13 isaki inkey.S getc.S print.S gets.S keysns.S kflushgp.S kflushio.S \ 19 1.10 christos kflushin.S kflushgc.S kflushgs.S fflush.S chgdrv.S drvctrl.S \ 20 1.13 isaki consns.S prnsns.S cinsns.S coutsns.S fatchk.S fatchk2.S hendspmo.S \ 21 1.13 isaki hendspmp.S hendspmr.S hendspmc.S hendspio.S hendspip.S hendspir.S \ 22 1.13 isaki hendspic.S hendspso.S hendspsp.S hendspsr.S hendspsc.S curdrv.S \ 23 1.13 isaki getss.S fgetc.S fgets.S fputc.S fputs.S allclose.S super.S fnckeygt.S \ 24 1.13 isaki fnckeyst.S c_putc.S c_print.S c_color.S c_locate.S c_down_s.S \ 25 1.13 isaki c_up_s.S c_up.S c_down.S c_right.S c_left.S c_cls_ed.S c_cls_st.S \ 26 1.10 christos c_cls_al.S c_era_ed.S c_era_st.S c_era_al.S c_ins.S c_del.S \ 27 1.13 isaki c_fnkmod.S c_window.S c_width.S c_curon.S c_curoff.S k_keyinp.S \ 28 1.13 isaki k_keysns.S k_sftsns.S k_keybit.S k_insmod.S intvcs.S pspset.S \ 29 1.10 christos gettim2.S settim2.S namests.S getdate.S setdate.S gettime.S settime.S \ 30 1.10 christos verify.S dup0.S vernum.S keeppr.S getdpb.S breakck.S drvxchg.S \ 31 1.13 isaki intvcg.S dskfre.S nameck.S mkdir.S rmdir.S chdir.S create.S open.S \ 32 1.13 isaki close.S read.S write.S delete.S seek.S chmod.S ioctrlgt.S ioctrlst.S \ 33 1.13 isaki ioctrlrh.S ioctrlwh.S ioctrlrd.S ioctrlwd.S ioctrlis.S ioctrlos.S \ 34 1.13 isaki ioctrldvgt.S ioctrlfdgt.S ioctrlrtset.S ioctrldvctl.S ioctrlfdctl.S \ 35 1.13 isaki dup.S dup2.S curdir.S malloc.S mfree.S setblock.S loadexec.S load.S \ 36 1.13 isaki pathchk.S loadonly.S execonly.S bindno.S exec2.S exit2.S wait.S \ 37 1.10 christos files.S exfiles.S nfiles.S exnfiles.S setpdb.S getpdb.S setenv.S \ 38 1.13 isaki getenv.S verifyg.S common_ck.S common_rd.S common_wt.S common_lk.S \ 39 1.13 isaki common_fre.S common_del.S move.S filedate.S malloc2.S malloc0.S \ 40 1.13 isaki maketmp.S newfile.S lock.S unlock.S getassign.S makeassign.S \ 41 1.13 isaki rassign.S fflush_set.S os_patch.S get_fcb_adr.S s_malloc.S \ 42 1.13 isaki s_malloc0.S s_mfree.S s_process.S retshell.S ctlabort.S errabort.S \ 43 1.13 isaki diskred.S diskred2.S diskwrt.S diskwrt2.S indosflg.S super_jsr.S \ 44 1.13 isaki memcpy.S open_pr.S kill_pr.S get_pr.S suspend_pr.S sleep_pr.S \ 45 1.13 isaki send_pr.S time_pr.S change_pr.S 46 1.1 itohy 47 1.10 christos SRCS+= ${ASM} 48 1.1 itohy 49 1.1 itohy MAKECALL=${.CURDIR}/makedoscalls.awk 50 1.1 itohy 51 1.1 itohy ${ASM}: ${.CURDIR}/dos.h ${MAKECALL} 52 1.11 christos ${_MKTARGET_CREATE} 53 1.1 itohy @grep -i 'DOS_${.PREFIX} ' ${.CURDIR}/dos.h | \ 54 1.10 christos ${TOOL_AWK} -f ${MAKECALL} | ${CPP} ${CPPFLAGS} > ${.TARGET} 55 1.1 itohy 56 1.1 itohy MAKESTRERR=${.CURDIR}/makestrerror.awk 57 1.1 itohy 58 1.10 christos CLEANFILES+=${ASM} 59 1.10 christos 60 1.1 itohy dos_strerror.S: ${.CURDIR}/dos_errno.h ${MAKESTRERR} 61 1.7 lukem ${_MKTARGET_CREATE} 62 1.8 apb @${TOOL_AWK} -f ${MAKESTRERR} ${.CURDIR}/dos_errno.h > ${.TARGET}\ 63 1.1 itohy || ( rm -f ${.TARGET}; exit 1 ) 64 1.1 itohy 65 1.1 itohy # only needed during build 66 1.1 itohy libinstall:: 67 1.1 itohy 68 1.5 tv .include <bsd.own.mk> 69 1.5 tv .undef DESTDIR 70 1.1 itohy .include <bsd.lib.mk> 71