source: trunk/src/grab_bag/makefile @ 1053

Revision 1053, 2.6 KB checked in by davidk, 16 years ago (diff)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#
2#       makefile for Earthworm
3#             Lucky Vidmar Mon Jan 11 21:31:51 MST 1999
4#
5#
6# This makefile contains all the directives necessary to compile
7# earthworm modules in a directory under Solaris and NT, as well as
8# clean up the Earthworm source and binary file tree.
9#
10# 1. To build (compile) the Earthworm modules on a Sun:
11#        make solaris
12#
13# 2. To build (compile) the Earthworm modules on an NT PC:
14#        nmake nt
15#
16# 3. To clean up the source tree, i.e. remove all *.o, *.obj, *~, *%,
17#    and core files from all modules, on a Sun:
18#        make clean_solaris
19#
20# 4. To clean up the source tree, i.e. remove all *.o, *.obj, *~, *%,
21#    and core files from all modules, on a PC running NT:
22#        nmake clean_nt
23#
24# 5. To clean up the bin directory, i.e. remove all Earthworm programs,
25#    on a Sun:
26#        make clean_bin_solaris
27#
28# 6. To clean up the bin directory, i.e. remove all Earthworm programs,
29#    on a PC running NT:
30#        nmake clean_bin_nt
31#
32#
33#
34# Whenever a new module is added to Earthworm, it should be added to
35# this makefile to the list of ALL_MODULES, and to the appropriate (or
36# both) lists of SOLARIS_MODULES and NT_MODULES. The analogous
37# procedure should be followed when a module is removed from the
38# Earthworm distribution.
39#
40
41
42
43#
44# List all modules to be compiled into the Solaris distribution
45#
46ALL_MODULES = \
47        arc2trig \
48        getfile_ew \
49        getter \
50        putter \
51        pickwasher
52
53#
54# List all modules to be compiled into the NT distribution
55#
56NT_MODULES = \
57        arc2trig \
58        getfile_ew \
59        getter \
60        putter \
61        pickwasher
62
63# DK 082402  To properly compile under NT, you will first need to
64# compile the nt_compilation_tools directory, as it generates small
65# binary programs that are used in the build process to help make
66# the source tree under NT.
67
68#
69# List all modules (for cleaning purposes)
70#
71SOLARIS_MODULES = \
72        arc2trig \
73        getfile_ew \
74        getter \
75        putter
76
77
78#
79#  Top level directives
80#
81solaris: sol_modules
82nt: nt_modules
83
84
85#
86#  Solaris directives
87#
88sol_modules:: FRC
89        @for x in $(SOLARIS_MODULES); \
90        do \
91                (echo ------; cd $$x; echo Making $@ in:; pwd; \
92                make -f makefile.sol); \
93        done
94
95clean_solaris:
96        @for x in $(ALL_MODULES); \
97        do \
98                (cd $$x; echo Cleaning in:; pwd; \
99                make -f makefile.sol clean); \
100        done
101
102clean_bin_solaris:
103        @for x in $(ALL_MODULES); \
104        do \
105                (cd $$x; echo Cleaning binaries in:; pwd; \
106                make -f makefile.sol clean_bin); \
107        done
108
109
110
111#
112#  NT directives
113#
114nt_modules:: FRC
115        @echo "Making Earthworm grab_bag modules"
116        @nt_make_subdirs $(NT_MODULES)
117
118clean_nt:: FRC
119        @for %x in ($(ALL_MODULES)) \
120        do \
121                @nt_clean %x
122
123clean_bin_nt:: FRC
124        @for %x in ($(ALL_MODULES)) \
125        do \
126                @nt_clbin %x
127
128FRC:
Note: See TracBrowser for help on using the repository browser.