summaryrefslogtreecommitdiff
path: root/src/tet3/tcclib/makefile
blob: 8f2647028cec9285619438cf5b7ae57d8abdc262 (plain)
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#
#	SCCS: @(#)makefile	1.2 (98/09/01)
#
#	UniSoft Ltd., London, England
#
# (C) Copyright 1996 X/Open Company Limited
#
# All rights reserved.  No part of this source code may be reproduced,
# stored in a retrieval system, or transmitted, in any form or by any
# means, electronic, mechanical, photocopying, recording or otherwise,
# except as stated in the end-user licence agreement, without the prior
# permission of the copyright owners.
# A copy of the end-user licence agreement is contained in the file
# Licence which accompanies this distribution.
# 
# X/Open and the 'X' symbol are trademarks of X/Open Company Limited in
# the UK and other countries.
#
# ************************************************************************
#
# SCCS:   	@(#)makefile	1.2 98/09/01
# NAME:		makefile
# PRODUCT:	TETware
# AUTHOR:	Andrew Dingwall, UniSoft Ltd.
# DATE CREATED:	October 1996
#
# DESCRIPTION:
#	tcclib makefile
# 
# MODIFICATIONS:
#
#	Andrew Dingwall, UniSoft Ltd., July 1998
#	Added support for shared API libraries.
# 
# ************************************************************************

include ../../defines.mk
include ../ts.mk

LOCAL_TET_CDEFS = $(TET_CDEFS)
LOCAL_DTET_CDEFS = $(DTET_CDEFS)
LOCAL_CDEFS =
LOCAL_COPTS = $(COPTS)

# TET_CFLAGS and DTET_CFLAGS are set in ../common.mk
include ../common.mk


LIBNAME = libtcc$A

OFILES = lockfile$O lsdir$O mktmpdir$O procdir$O rmrf$O sharlock$O \
	tcfexec$O w32wait$O

first_make_rule: all

all install: lib_made

lib_made: $(OFILES)
	if test -f lib_made; then \
		$(AR) rv $(LIBNAME) $? ;\
	else \
		$(AR) rv $(LIBNAME) `$(LORDER) $(OFILES) | $(TSORT)` ;\
	fi
	$(RANLIB) $(LIBNAME)
	touch lib_made

.PRECIOUS: $(LIBNAME)

CLEAN clean:
	rm -f $(OFILES)

CLOBBER clobber: clean
	rm -f $(LIBNAME) lib_made

FORCE FRC: clobber all


# clear the suffix list in this makefile
# all .o file are made by explicit rules
.SUFFIXES:

.SUFFIXES: .none


# compilations - all with $TET_CFLAGS

lockfile$O: lockfile.c
	$(CC) $(TET_CFLAGS) -c lockfile.c

lsdir$O: lsdir.c
	$(CC) $(TET_CFLAGS) -c lsdir.c

mktmpdir$O: mktmpdir.c
	$(CC) $(TET_CFLAGS) -c mktmpdir.c

procdir$O: procdir.c
	$(CC) $(TET_CFLAGS) -c procdir.c

rmrf$O: rmrf.c
	$(CC) $(TET_CFLAGS) -c rmrf.c

sharlock$O: sharlock.c
	$(CC) $(TET_CFLAGS) -c sharlock.c

tcfexec$O: tcfexec.c
	$(CC) $(TET_CFLAGS) -c tcfexec.c

w32wait$O: w32wait.c
	$(CC) $(TET_CFLAGS) -c w32wait.c



# dependencies

lockfile$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/dtmsg.h $(INC)/error.h \
	$(INC)/tcclib.h

lsdir$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/error.h $(INC)/tcclib.h \
	$(INC)/tetdir.h

mktmpdir$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/dtmsg.h $(INC)/error.h \
	$(INC)/globals.h $(INC)/ltoa.h $(INC)/tcclib.h

procdir$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/dtmsg.h $(INC)/error.h \
	$(INC)/globals.h $(INC)/ltoa.h $(INC)/ptab.h $(INC)/servlib.h \
	$(INC)/tcclib.h

rmrf$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/dtmsg.h $(INC)/error.h \
	$(INC)/globals.h $(INC)/ltoa.h $(INC)/tcclib.h

sharlock$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/dtmsg.h $(INC)/error.h \
	$(INC)/ltoa.h $(INC)/tcclib.h

tcfexec$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/dtmsg.h $(INC)/error.h \
	$(INC)/globals.h $(INC)/ltoa.h $(INC)/servlib.h $(INC)/synreq.h \
	$(INC)/tcclib.h

w32wait$O: $(INC)/dtetlib.h $(INC)/dtmac.h $(INC)/dtmsg.h $(INC)/error.h \
	$(INC)/ltoa.h $(INC)/tcclib.h