chiark / gitweb /
WIP
[subdirmk.git] / lib / Subdir.mk.in
1 ### -*-makefile-gmake-*-
2 ###
3 ### Build script for library
4 ###
5 ### (c) 2019 Mark Wooding
6 ### (c) 2019 Ian Jackson
7 ###
8
9 ###----- Licensing notice ---------------------------------------------------
10 ###
11 ### This program is free software; you can redistribute it and/or modify
12 ### it under the terms of the GNU Library General Public License as
13 ### published by the Free Software Foundation; either version 2 of the
14 ### License, or (at your option) any later version.
15 ###
16 ### This program is distributed in the hope that it will be useful,
17 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 ### GNU Library General Public License for more details.
20 ###
21 ### You should have received a copy of the GNU Library General Public
22 ### License along with this program; if not, write to the Free
23 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
24 ### MA 02111-1307, USA.
25
26 &TARGETS        += & libtoy.a
27
28 &OBJECTS        += & toylib.c
29
30 &libtoy.a:      $(&OBJECTS)
31         $(AR) rc $@ $^