Makefile
931 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
#!smake
#
# Makefile for tool to create packed ROM image
#
PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
#ifndef REMOTEHOST
REMOTEHOST = clef
#endif
LOCAL = /hosts/$(HOST)/`pwd`
OPTIMIZER = -g
TARGETS=makedisk
CFILES = makedisk.c elspec.c segment.c coff.c
YFILES = specgram.y
LFILES = speclex.l
LCINCS = -I. -I/usr/include -I$(PRDEPTH)/../usr/include -I$(PRDEPTH)/../usr/include/PR
LCOPTS = -fullwarn -Xcpluscomm
LLDLIBS= -lelf -ll -lmld
LDIRT=makedisk
YFLAGS=-d
default:
rsh $(REMOTEHOST) cd $(LOCAL) ";" $(MAKE) $(TARGETS)
include $(COMMONRULES)
makedisk: $(OBJECTS)
$(CCF) $(ROOT)/usr/lib/PR/convert.o $(ROOT)/usr/lib/PR/table.o $(OBJECTS) -L/usr/lib $(LDFLAGS) -o $@
speclex.o: ./y.tab.h
specgram.o: specgram.y
$(YACC) $(YFLAGS) $*.y
$(CC) $(YACCMKDEPFLAGS) $(CFLAGS) -c y.tab.c
-rm -f y.tab.c
mv -f y.tab.o specgram.o
./y.tab.h: specgram.o
exports install: default
$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)