11.11Schristos#	$NetBSD: Makefile,v 1.11 2013/05/24 16:00:16 christos Exp $
21.1Sitohy
31.1SitohyLIB=	iocs
41.1Sitohy
51.7StvNOLINT=# defined
61.7StvNOPROFILE=# defined
71.7StvNOPIC=# defined
81.1Sitohy
91.10Stsutsui.include "../Makefile.booters"
101.10Stsutsui
111.10StsutsuiCPPFLAGS+=	-I.
121.10Stsutsui
131.11SchristosASM=	b_keyinp.S b_keysns.S b_sftsns.S bitsns.S skeyset.S tvctrl.S \
141.11Schristos	ledmod.S tgusemd.S defchr.S crtmod.S contrast.S hsvtorgb.S tpalet.S \
151.11Schristos	tpalet2.S tcolor.S fntget.S textget.S textput.S clipput.S scroll.S \
161.11Schristos	b_curon.S b_curoff.S b_putc.S b_print.S b_color.S b_locate.S \
171.11Schristos	b_down_s.S b_up_s.S b_up.S b_down.S b_right.S b_left.S b_clr_ed.S \
181.11Schristos	b_clr_st.S b_clr_al.S b_era_ed.S b_era_st.S b_era_al.S b_ins.S \
191.11Schristos	b_del.S b_consol.S b_putmes.S set232c.S lof232c.S inp232c.S \
201.11Schristos	isns232c.S osns232c.S out232c.S joyget.S init_prn.S snsprn.S \
211.11Schristos	outlpt.S outprn.S b_seek.S b_verify.S b_readdi.S b_dskini.S \
221.11Schristos	b_drvsns.S b_write.S b_read.S b_recali.S b_assign.S b_writed.S \
231.11Schristos	b_readid.S b_badfmt.S b_readdl.S b_format.S b_drvchk.S b_eject.S \
241.11Schristos	bindatebcd.S bindateset.S timebcd.S timeset.S bindateget.S datebin.S \
251.11Schristos	timeget.S timebin.S datecnv.S timecnv.S dateasc.S timeasc.S dayasc.S \
261.11Schristos	alarmmod.S alarmset.S alarmget.S adpcmout.S adpcminp.S adpcmaot.S \
271.11Schristos	adpcmain.S adpcmlot.S adpcmlin.S adpcmsns.S adpcmmod.S opmset.S \
281.11Schristos	opmsns.S opmintst.S timerdst.S vdispst.S crtcras.S hsyncst.S \
291.11Schristos	prnintst.S ms_init.S ms_curon.S ms_curof.S ms_stat.S ms_getdt.S \
301.11Schristos	ms_curgt.S ms_curst.S ms_limit.S ms_offtm.S ms_ontm.S ms_patst.S \
311.11Schristos	ms_sel.S ms_sel2.S skey_mod.S densns.S ontime.S b_intvcs.S b_super.S \
321.11Schristos	b_bpeek.S b_wpeek.S b_lpeek.S b_memstr.S b_bpoke.S b_wpoke.S \
331.11Schristos	b_lpoke.S b_memset.S dmamove.S dmamov_a.S dmamov_l.S dmamode.S \
341.11Schristos	bootinf.S romver.S g_clr_on.S gpalet.S sftjis.S jissft.S akconv.S \
351.11Schristos	rmacnv.S dakjob.S hanjob.S mpu_stat.S cache_st.S cache_md.S \
361.11Schristos	b_curmod.S b_curpat.S b_curpat1.S b_curdef.S b_scroll.S os_curon.S \
371.11Schristos	os_curof.S drawmode.S apage.S vpage.S home.S window.S wipe.S pset.S \
381.11Schristos	point.S line.S box.S fill.S circle.S paint.S symbol.S getgrm.S \
391.11Schristos	putgrm.S sp_init.S sp_on.S sp_off.S sp_cgclr.S sp_defcg.S sp_gtpcg.S \
401.11Schristos	sp_regst.S sp_reggt.S bgscrlst.S bgscrlgt.S bgctrlst.S bgctrlgt.S \
411.11Schristos	bgtextcl.S bgtextst.S bgtextgt.S spalet.S txxline.S txyline.S \
421.11Schristos	txline.S txbox.S txfill.S txrev.S txrascpy.S abortrst.S iplerr.S \
431.11Schristos	abortjob.S trap15.S
441.1Sitohy
451.1Sitohy# SCSI calls
461.11SchristosASM+=	s_reset.S s_select.S s_cmdout.S s_datain.S s_dataout.S s_stsin.S \
471.11Schristos	s_msgin.S s_msgout.S s_phase.S s_inquiry.S s_read.S s_write.S \
481.11Schristos	s_format.S s_testunit.S s_readcap.S s_readext.S s_writeext.S \
491.11Schristos	s_rezerounit.S s_request.S s_seek.S s_startstop.S s_reassign.S \
501.11Schristos	s_pamedium.S
511.1Sitohy
521.11SchristosSRCS+=	${ASM}
531.1Sitohy
541.1SitohyMAKECALL=${.CURDIR}/makeiocscalls.awk
551.1Sitohy
561.1Sitohy${ASM}: ${.CURDIR}/iocs.h ${MAKECALL}
571.11Schristos	${_MKTARGET_CREATE}
581.1Sitohy	@grep -i 'IOCS_${.PREFIX} ' ${.CURDIR}/iocs.h | \
591.9Sapb	    ${TOOL_AWK} -f ${MAKECALL} | \
601.11Schristos	    ${CPP} ${CPPFLAGS} > ${.TARGET}
611.11Schristos
621.11SchristosCLEANFILES+=	${ASM}
631.1Sitohy
641.1Sitohy# only needed during build
651.1Sitohylibinstall::
661.1Sitohy
671.6Stv.include <bsd.own.mk>
681.6Stv.undef DESTDIR
691.1Sitohy.include <bsd.lib.mk>
70