1# --------------------------------------------------------------------
2# Makefile
3#
4#  Copyright (C) 1999 Angelo Masci
5#
6#  This library is free software; you can redistribute it and/or
7#  modify it under the terms of the GNU Library General Public
8#  License as published by the Free Software Foundation; either
9#  version 2 of the License, or (at your option) any later version.
10#
11#  This library is distributed in the hope that it will be useful,
12#  but WITHOUT ANY WARRANTY; without even the implied warranty of
13#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14#  Library General Public License for more details.
15#
16#  You should have received a copy of the GNU Library General Public
17#  License along with this library; if not, write to the Free
18#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19#
20#  You can contact the author at this e-mail address:
21#
22#  angelo@styx.demon.co.uk
23#
24# --------------------------------------------------------------------
25# $Id$
26# --------------------------------------------------------------------
27
28include ../../Makefile.config
29
30# --------------------------------------------------------------------
31
32all: libcommon.a
33
34clean:
35	$(RM) libcommon.a
36	$(RM) *.o
37
38# --------------------------------------------------------------------
39
40XINC = -I. -I..
41
42# --------------------------------------------------------------------
43
44libcommon.a: strfcat.o usleep.o getword.o format.o fprintf.o printf.o snprintf.o sprintf.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o vasprintf.o asprintf.o status.o
45	$(AR) libcommon.a strfcat.o usleep.o getword.o format.o fprintf.o printf.o snprintf.o sprintf.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o vasprintf.o asprintf.o status.o
46
47# --------------------------------------------------------------------
48
49strfcat.o: strfcat.c common.h
50	$(CC) $(CFLAGS) $(XINC) -c strfcat.c
51
52usleep.o: usleep.c common.h
53	$(CC) $(CFLAGS) $(XINC) -c usleep.c
54
55getword.o: getword.c common.h
56	$(CC) $(CFLAGS) $(XINC) -c getword.c
57
58status.o: status.c  common.h
59	$(CC) $(CFLAGS) $(XINC) -c status.c
60
61format.o: format.c  common.h
62	$(CC) $(CFLAGS) $(XINC) -c format.c
63
64fprintf.o: fprintf.c common.h
65	$(CC) $(CFLAGS) $(XINC) -c fprintf.c
66
67printf.o: printf.c common.h
68	$(CC) $(CFLAGS) $(XINC) -c printf.c
69
70snprintf.o: snprintf.c common.h
71	$(CC) $(CFLAGS) $(XINC) -c snprintf.c
72
73sprintf.o: sprintf.c common.h
74	$(CC) $(CFLAGS) $(XINC) -c sprintf.c
75
76vfprintf.o: vfprintf.c common.h
77	$(CC) $(CFLAGS) $(XINC) -c vfprintf.c
78
79vprintf.o: vprintf.c common.h
80	$(CC) $(CFLAGS) $(XINC) -c vprintf.c
81
82vsnprintf.o: vsnprintf.c common.h
83	$(CC) $(CFLAGS) $(XINC) -c vsnprintf.c
84
85vsprintf.o: vsprintf.c common.h
86	$(CC) $(CFLAGS) $(XINC) -c vsprintf.c
87
88vasprintf.o: vasprintf.c common.h
89	$(CC) $(CFLAGS) $(XINC) -c vasprintf.c
90
91asprintf.o: asprintf.c common.h
92	$(CC) $(CFLAGS) $(XINC) -c asprintf.c
93
94# --------------------------------------------------------------------
95
96
97