Makefile
821 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
40
41
42
43
44
45
46
47
48
49
50
#
# Makefile for RSP simulator
#
include $(ROOT)/usr/include/make/commondefs
CVERSION = -xansi
OPTIMIZER = -g
# local options
LCOPTS = -mips2
# local defs
LCDEFS = -I/a/rww/mdev2root/usr/include -I/a/rww/mdev2root/usr/include/PR
# local includes
LCINCS =
CFILES = randinst.c randdata.c nper.c
LDLIBS =
TARGETS = randinst randdata nper
default:
@$(MAKE) ${TARGETS}
install: ${TARGETS}
$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)
clean:
/bin/rm -rf ${OBJECTS}
clobber: clean
/bin/rm -rf ${TARGETS} ${MKDEPFILE}
#
nper: nper.o
$(CC) $(LCDEFS) -o $@ nper.o
#
randdata: randdata.o
$(CC) $(LCDEFS) -o $@ randdata.o
#
randinst: randinst.o disasm.o
$(CC) $(LCDEFS) -o $@ randinst.o disasm.o
disasm.o: ../disasm.c
$(CC) $(LCDEFS) -c ../disasm.c
# DO NOT DELETE THIS LINE -- make depend depends on it.