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