Home | History | Annotate | Line # | Download | only in libdos
Makefile revision 1.11
      1  1.11  christos #	$NetBSD: Makefile,v 1.11 2013/05/24 15:35:36 christos 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.10  christos ASM=	exit.S getchar.S putchar.S .Sminp.S .S.Sut.S pr.Sut.S in.Sut.S \
     18  1.10  christos 	inkey.S getc.S print.S gets.S keysns.S kflushgp.S kflush.S.S \
     19  1.10  christos 	kflushin.S kflushgc.S kflushgs.S fflush.S chgdrv.S drvctrl.S \
     20  1.10  christos 	.Snsns.S prnsns.S cinsns.S .Sutsns.S fatchk.S fatchk2.S hendsp.S.S \
     21  1.10  christos 	hendspmp.S hendspmr.S hendspmc.S hendsp.S.S hendspip.S hendspir.S \
     22  1.10  christos 	hendspic.S hendsp.S.S hendspsp.S hendspsr.S hendspsc.S curdrv.S \
     23  1.10  christos 	getss.S fgetc.S fgets.S fputc.S fputs.S allc.Sse.S super.S fnckeygt.S \
     24  1.10  christos 	fnckeyst.S c_putc.S c_print.S c_.S.Sr.S c_.Scate.S c_.Swn_s.S \
     25  1.10  christos 	c_up_s.S c_up.S c_.Swn.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.10  christos 	c_fnk.Sd.S c_win.Sw.S c_width.S c_cu.Sn.S c_cu.Sff.S k_keyinp.S \
     28  1.10  christos 	k_keysns.S k_sftsns.S k_keybit.S k_ins.Sd.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.10  christos 	intvcg.S dskfre.S nameck.S mkdir.S rmdir.S chdir.S create.S.Spen.S \
     32  1.10  christos 	c.Sse.S read.S write.S delete.S seek.S ch.Sd.S .Sctrlgt.S .Sctrlst.S \
     33  1.10  christos 	.Sctrlrh.S .Sctrlwh.S .Sctrlrd.S .Sctrlwd.S .Sctrlis.S .Sctr.Ss.S \
     34  1.10  christos 	.Sctrldvgt.S .Sctrlfdgt.S .Sctrlrtset.S .Sctrldvctl.S .Sctrlfdctl.S \
     35  1.10  christos 	dup.S dup2.S curdir.S mal.Sc.S mfree.S setb.Sck.S .Sadexec.S .Sad.S \
     36  1.10  christos 	pathchk.S .Sa.Snly.S exe.Snly.S bind.S.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.10  christos 	getenv.S verifyg.S .Sm.Sn_ck.S .Sm.Sn_rd.S .Sm.Sn_wt.S .Sm.Sn_lk.S \
     39  1.10  christos 	.Sm.Sn_fre.S .Sm.Sn_del.S .Sve.S filedate.S mal.Sc2.S mal.Sc0.S \
     40  1.10  christos 	maketmp.S newfile.S .Sck.S un.Sck.S getassign.S makeassign.S \
     41  1.10  christos 	rassign.S fflush_set.S.Ss_patch.S get_fcb_adr.S s_mal.Sc.S \
     42  1.10  christos 	s_mal.Sc0.S s_mfree.S s_p.Scess.S retshell.S ctla.Srt.S erra.Srt.S \
     43  1.10  christos 	diskred.S diskred2.S diskwrt.S diskwrt2.S in.Ssflg.S super_jsr.S \
     44  1.10  christos 	memcpy.S.Spen_pr.S kill_pr.S get_pr.S suspend_pr.S sleep_pr.S \
     45  1.10  christos 	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