Makefile 576 Bytes
#!smake -k
#
# Makefile for Go/No-go cpu standalone test
#

include $(ROOT)/usr/include/make/PRdefs

include ../../gngdefs
include locdefs

APP =		cputest

TARGETS =	$(APP)

CFILES =	boot.c

LDIRT  =	$(APP) rom

LDFLAGS =	$(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -lultra_d

CPUSEG	=	../cpuseg.o

USRSEG	=	../user/userseg.o

STANDSEG=	standseg.o

default:	$(TARGETS)

include $(COMMONRULES)

install:	default

$(STANDSEG):	$(CPUSEG) $(OBJECTS)
		$(LD) -o $@ -r  $(OBJECTS) $(CPUSEG) $(LDFLAGS)

rom $(APP):	spec boot.o $(STANDSEG) $(USRSEG) $(MAKEROM)
		$(MAKEROM) -r rom spec