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