chiark
/
gitweb
/
~ian
/
subdirmk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip
[subdirmk.git]
/
lib
/
Subdir.mk.in
diff --git
a/lib/Subdir.mk.in
b/lib/Subdir.mk.in
index eba1ce1429b10ad19c00ac0f2c25cd3c662acc23..6162e90ec3cf3b7adb337c4a591bfa3cef6d327e 100644
(file)
--- a/
lib/Subdir.mk.in
+++ b/
lib/Subdir.mk.in
@@
-3,6
+3,7
@@
### Build script for library
###
### (c) 2019 Mark Wooding
### Build script for library
###
### (c) 2019 Mark Wooding
+### (c) 2019 Ian Jackson
###
###----- Licensing notice ---------------------------------------------------
###
###----- Licensing notice ---------------------------------------------------
@@
-22,16
+23,9
@@
### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
### MA 02111-1307, USA.
### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
### MA 02111-1307, USA.
-$D/all:: $D/libtoy.a
-$D_CLEANFILES :=
+&TARGETS += & libtoy.a
-libtoy_SOURCES := $(addprefix $D/, toylib.c)
-libtoy_OBJECTS := $(call objects, $(libtoy_SOURCES))
-$(call notice-objects, $(libtoy_OBJECTS))
+&OBJECTS += & toylib.c
-$D/libtoy.a: $(libtoy_OBJECTS)
- $(call v-tag,AR)ar rc $@ $^
-$D_CLEANFILES += $D/libtoy.a
-
-SUBDIRS = t
-$(call descend-subdirs, $(SUBDIRS))
+&libtoy.a: $(&OBJECTS)
+ $(AR) rc $@ $^