GNUmakefile
1.2 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/sbin/smake
#
# Makefile for PR/diags/io
#
# ioide may be built locally here, for testing with just the local modules;
# a master ide will be built the next directory level up, and will link with
# all the test modules.
#
# $Revision: 1.1 $
#
PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GCINCS=
GLDOPTS=
IDEAWKSCRIPT=$(PRDEPTH)/diags/ide/builtins.awk
LIBDG= $(ROOT)/usr/lib/PR/libdg.a
LIBIDE= $(PRDEPTH)/diags/ide/libide.a
LCOPTS= -g
STDINC= $(ROOT)/usr/include
IDEINC= $(ROOT)/usr/include/ide
PRINC= $(PRDEPTH)/include
LCINCS= -I$(PRINC) -I$(STDINC) -I$(IDEINC)
LLDOPTS = -L$(ROOT)/usr/lib/PR -L$(PRDEPTH)/diags/ide
LLDLIBS = -ldg -lide
OBJS= iocmd.o \
io.o \
iostubs.o
COMMONOBJS= ../common/reg.o
TARGETS= ioide
default install all: $(TARGETS)
ioide: $(LIBDG) $(LIBIDE) $(OBJS) $(COMMONOBJS)
$(CC) -o ioide $(OBJS) $(COMMONOBJS) $(LDFLAGS)
clean:
rm -f iocmd.c $(OBJS)
clobber: clean
rm -f $(TARGETS) Makedepend
iocmd.c: iocmd.awk $(IDEAWKSCRIPT)
$(NAWK) -v FILENAME=iocmd.awk -F'\t[\t ]*' -f $(IDEAWKSCRIPT) iocmd.awk > $@
iocmd.o: iocmd.c $(IDEINC)/ide.h
$(CC) $(CFLAGS) -c iocmd.c -o iocmd.o
io.o: $(IDEINC)/diag.h $(IDEINC)/dbg_comm.h
.SUFFIXES: .o
.c.o:
$(CC) $(CFLAGS) -c $< -o $*.o