Makefile 715 Bytes
#
# Makefile for host-side executables, using host to target interface routines.
#

PRDEPTH = ../..
include $(PRDEPTH)/PRdefs

TARGETS =	readmem writeword dmaRead dmaWrite

LASOPTS =	-G 0

LCOPTS = 	-fullwarn -g
LCINCS = 	-I. -I$(PRDEPTH)/include -I$(PRDEPTH)/diags/include
LDFLAGS = 	-L$(ROOT)/usr/lib/PR -L$(PRDEPTH)/diags/ide

default:	$(TARGETS)

readmem: readmem.c
	$(CCF) -o $@ $(LDFLAGS) readmem.c -ldg

writeword: writeword.c
	$(CCF) -o $@ $(LDFLAGS) writeword.c -ldg

dmaRead: dmaRead.c
	$(CCF) -o $@ $(LDFLAGS) dmaRead.c -ldg

dmaWrite: dmaWrite.c
	$(CCF) -o $@ $(LDFLAGS) dmaWrite.c -ldg

default: $(TARGETS)

include $(COMMONRULES)

exports install: default
	$(INSTALL) -m 555 -F /usr/lib/PR $(TARGETS)