source: to-imperative/trunk/library/Makefile @ 1429

Last change on this file since 1429 was 1429, checked in by orlov, 17 years ago
  • Improved makefiles.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 660 bytes
Line 
1SUBDIRS = \
2  Access \
3  Apply \
4  Arithm \
5  ShortArithm \
6  Box \
7  Class \
8  Convert \
9  StdIO \
10  String \
11  Table \
12  Compare \
13  Dos \
14  Vector \
15  Bit
16
17TOPDIR = ..
18
19include $(TOPDIR)/rules.mk
20
21lists = $(addsuffix /module.list, $(SUBDIRS))
22
23LIBRF = librf.a
24
25all:: $(LIBRF)
26
27$(LIBRF): $(lists)
28        rm -rf $@
29        $(AR) cru $@ $(foreach dir, $(SUBDIRS), $(addprefix $(dir)/, $(shell cat $(dir)/module.list)))
30
31clean::
32        rm -rf $(LIBRF)
33
34install:: all
35        mkdir -p -m 0755 $(INSTALL_DIR)/lib
36        install -m 0644 $(LIBRF) $(INSTALL_DIR)/lib/
37        mkdir -p -m 0755 $(INSTALL_DIR)/include/refal-plus
38        install -m 0644 include/refal-plus/*.rfi $(INSTALL_DIR)/include/refal-plus/
39
Note: See TracBrowser for help on using the repository browser.