GNUmakefile
633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!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
LDFLAGS = $(MKDEPOPT) -L$(ROOT)/usr/lib -lultra_d -lgcc
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