Home | History | Annotate | Line # | Download | only in libdos
Makefile revision 1.9.24.1
      1  1.9.24.1      tls #	$NetBSD: Makefile,v 1.9.24.1 2013/06/23 06:20:14 tls 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.9.24.1      tls ASM=	exit.S getchar.S putchar.S cominp.S comout.S prnout.S inpout.S \
     18  1.9.24.1      tls 	inkey.S getc.S print.S gets.S keysns.S kflushgp.S kflushio.S \
     19  1.9.24.1      tls 	kflushin.S kflushgc.S kflushgs.S fflush.S chgdrv.S drvctrl.S \
     20  1.9.24.1      tls 	consns.S prnsns.S cinsns.S coutsns.S fatchk.S fatchk2.S hendspmo.S \
     21  1.9.24.1      tls 	hendspmp.S hendspmr.S hendspmc.S hendspio.S hendspip.S hendspir.S \
     22  1.9.24.1      tls 	hendspic.S hendspso.S hendspsp.S hendspsr.S hendspsc.S curdrv.S \
     23  1.9.24.1      tls 	getss.S fgetc.S fgets.S fputc.S fputs.S allclose.S super.S fnckeygt.S \
     24  1.9.24.1      tls 	fnckeyst.S c_putc.S c_print.S c_color.S c_locate.S c_down_s.S \
     25  1.9.24.1      tls 	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.9.24.1      tls 	c_cls_al.S c_era_ed.S c_era_st.S c_era_al.S c_ins.S c_del.S \
     27  1.9.24.1      tls 	c_fnkmod.S c_window.S c_width.S c_curon.S c_curoff.S k_keyinp.S \
     28  1.9.24.1      tls 	k_keysns.S k_sftsns.S k_keybit.S k_insmod.S intvcs.S pspset.S \
     29  1.9.24.1      tls 	gettim2.S settim2.S namests.S getdate.S setdate.S gettime.S settime.S \
     30  1.9.24.1      tls 	verify.S dup0.S vernum.S keeppr.S getdpb.S breakck.S drvxchg.S \
     31  1.9.24.1      tls 	intvcg.S dskfre.S nameck.S mkdir.S rmdir.S chdir.S create.S open.S \
     32  1.9.24.1      tls 	close.S read.S write.S delete.S seek.S chmod.S ioctrlgt.S ioctrlst.S \
     33  1.9.24.1      tls 	ioctrlrh.S ioctrlwh.S ioctrlrd.S ioctrlwd.S ioctrlis.S ioctrlos.S \
     34  1.9.24.1      tls 	ioctrldvgt.S ioctrlfdgt.S ioctrlrtset.S ioctrldvctl.S ioctrlfdctl.S \
     35  1.9.24.1      tls 	dup.S dup2.S curdir.S malloc.S mfree.S setblock.S loadexec.S load.S \
     36  1.9.24.1      tls 	pathchk.S loadonly.S execonly.S bindno.S exec2.S exit2.S wait.S \
     37  1.9.24.1      tls 	files.S exfiles.S nfiles.S exnfiles.S setpdb.S getpdb.S setenv.S \
     38  1.9.24.1      tls 	getenv.S verifyg.S common_ck.S common_rd.S common_wt.S common_lk.S \
     39  1.9.24.1      tls 	common_fre.S common_del.S move.S filedate.S malloc2.S malloc0.S \
     40  1.9.24.1      tls 	maketmp.S newfile.S lock.S unlock.S getassign.S makeassign.S \
     41  1.9.24.1      tls 	rassign.S fflush_set.S os_patch.S get_fcb_adr.S s_malloc.S \
     42  1.9.24.1      tls 	s_malloc0.S s_mfree.S s_process.S retshell.S ctlabort.S errabort.S \
     43  1.9.24.1      tls 	diskred.S diskred2.S diskwrt.S diskwrt2.S indosflg.S super_jsr.S \
     44  1.9.24.1      tls 	memcpy.S open_pr.S kill_pr.S get_pr.S suspend_pr.S sleep_pr.S \
     45  1.9.24.1      tls 	send_pr.S time_pr.S change_pr.S
     46       1.1    itohy 
     47  1.9.24.1      tls 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.9.24.1      tls 	${_MKTARGET_CREATE}
     53       1.1    itohy 	@grep -i 'DOS_${.PREFIX} ' ${.CURDIR}/dos.h | \
     54  1.9.24.1      tls 	    ${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.9.24.1      tls CLEANFILES+=${ASM}
     59  1.9.24.1      tls 
     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