mirror of
https://github.com/wfjm/w11.git
synced 2026-01-19 01:47:47 +00:00
62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# $Id: Makefile 1176 2019-06-30 07:16:06Z mueller $
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
# Copyright 2011-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
|
#
|
|
# Top level makefile, using the recipe found in
|
|
# http://www.lackof.org/taggart/hacking/make-example/
|
|
#
|
|
# Revision History:
|
|
# Date Rev Version Comment
|
|
# 2014-11-07 601 1.3 add tcshcpp
|
|
# 2013-02-01 479 1.2.2 correct so names for *w11* libs
|
|
# 2013-01-27 478 1.2.1 add librlw11(tpp)
|
|
# 2011-03-20 372 1.1.1 renamed ..tcl -> ..tpp
|
|
# 2011-03-14 370 1.1.0 rename librtoolstcl -> librtcltools
|
|
# 2011-02-13 361 1.1 add realclean rule; add dirs and dependencies
|
|
# 2011-01-30 357 1.0 Initial version
|
|
#
|
|
DIRS = librtools
|
|
DIRS += librlink
|
|
DIRS += librw11
|
|
DIRS += librtcltools
|
|
DIRS += librutiltpp
|
|
DIRS += librlinktpp
|
|
DIRS += librwxxtpp
|
|
DIRS += tclshcpp
|
|
#
|
|
BUILDDIRS = $(DIRS:%=build-%)
|
|
CLEANDIRS = $(DIRS:%=clean-%)
|
|
DISTCDIRS = $(DIRS:%=distc-%)
|
|
#
|
|
.PHONY: all clean distclean
|
|
.PHONY: $(DIRS)
|
|
.PHONY: $(BUILDDIRS)
|
|
.PHONY: $(CLEANDIRS)
|
|
.PHONY: $(DISTCDIRS)
|
|
#
|
|
# build 'all' rule
|
|
#
|
|
all: $(BUILDDIRS)
|
|
#
|
|
build-librw11 : build-librlink
|
|
build-librlink : build-librtools
|
|
build-librtcltools : build-librtools
|
|
build-librutiltpp : build-librtcltools
|
|
build-librwxxtpp : build-librw11 build-librtcltools
|
|
build-librlinktpp : build-librlink build-librtcltools
|
|
#
|
|
$(BUILDDIRS):
|
|
$(MAKE) -C $(@:build-%=%)
|
|
#
|
|
# clean rule
|
|
#
|
|
clean: $(CLEANDIRS)
|
|
$(CLEANDIRS):
|
|
$(MAKE) -C $(@:clean-%=%) clean
|
|
#
|
|
# distclean rule
|
|
#
|
|
distclean: $(DISTCDIRS)
|
|
$(DISTCDIRS):
|
|
$(MAKE) -C $(@:distc-%=%) distclean
|