File: Makefile.base

package info (click to toggle)
guile-core 1%3A1.3.4-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,348 kB
  • ctags: 5,474
  • sloc: ansic: 45,175; lisp: 9,030; sh: 7,720; asm: 1,580; makefile: 483; awk: 162; csh: 50
file content (112 lines) | stat: -rw-r--r-- 2,112 bytes parent folder | download | duplicates (20)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.SUFFIXES: .c .o .s .E

#
# Need to include from the current directory because "qt.h"
# will include <qtmd.h>.
#
CFLAGS	      = -I. -g

#
# Fix this to be something meaningful for your system.
#
DEST	      = /dev/null

DOC	      =	users.tout

EXTHDRS	      = /usr/include/stdio.h

HDRS	      = qt.h \
		qtmd.h \
		stp.h

LDFLAGS	      = $(CFLAGS)

EXTLIBS       =

LIBS	      = libstp.a libqt.a

LINKER	      = $(CC)

MAKEFILE      = Makefile

M	      =	Makefile configuration

OBJS	      = qtmdb.o \
		meas.o

QTOBJS	      =	qt.o qtmds.o qtmdc.o

STPOBJS	      =	stp.o

PR	      =	-Pps

PRINT	      = pr

PROGRAM	      = run

SRCS	      = meas.c \
		qt.c \
		qtmdc.c \
		qtmds.s \
		qtmdb.s

TMP_INIT      =	tmp.init
TMP_SWAP      =	tmp.swap

.DEFAULT:
		co -q $@

.c.E:		force
		$(CC) $(CFLAGS) -E $*.c > $*.E

all:		libqt.a libstp.a $(PROGRAM) $(M)

libqt.a:	$(QTOBJS) $(M)
		ar crv libqt.a $(QTOBJS)
		ranlib libqt.a

libstp.a:	$(STPOBJS) $(M)
		ar crv libstp.a $(STPOBJS)
		ranlib libstp.a

$(PROGRAM):     $(OBJS) $(LIBS) $(M)
		@echo "Loading $(PROGRAM) ... "
#		ld -o $(PROGRAM) /lib/crt0.o $(OBJS) -lc
		$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) $(EXTLIBS) -o $(PROGRAM)
		@echo "done"

clean:
		rm -f $(OBJS) $(PROGRAM) $(TMP_INIT) $(TMP_SWAP) $(DOC)
		rm -f libqt.a libstp.a
		rm -f $(QTOBJS) $(STPOBJS)

depend:;	@mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)

doc:		users.ms raw
		time/assim < raw | grep "^init" | sed 's/^init //' > $(TMP_INIT)
		time/assim < raw | grep "^swap" | sed 's/^swap //' > $(TMP_SWAP)
		soelim users.ms | tbl $(PR) | troff -t $(PR) -ms > $(DOC)

index:;		@ctags -wx $(HDRS) $(SRCS)

print:;		@$(PRINT) $(HDRS) $(SRCS)

program:        $(PROGRAM)

tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)

update:		$(DEST)/$(PROGRAM)

$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
		@make -f $(MAKEFILE) DEST=$(DEST) install

QT_H =		qt.h $(QTMD_H)
QTMD_H =	qtmd.h

###
qtmdb.o: $(M) qtmdb.s b.h
meas.o: $(M) meas.c /usr/include/stdio.h $(QT_H) b.h stp.h
qt.o: $(M) qt.c $(QT_H)
stp.o: $(M) stp.c stp.h $(QT_H)
qtmds.o: $(M) qtmds.s
qtmdc.o: $(M) qtmdc.c $(QT_H)