source: trunk/src/data_sources/Makefile @ 3201

Revision 3201, 3.6 KB checked in by paulf, 12 years ago (diff)

added nmxptool to Makefile for unix/solaris

  • 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# List all modules (for cleaning purposes)
43#
44ALL_MODULES = \
45        adsend \
46        k2ew \
47        naqs2ew \
48        nmxptool \
49        psnadsend \
50        q2ew \
51        q3302ew \
52        reboot_mss \
53        reboot_mss_ew \
54        reftek2ew \
55        scream2ew  \
56        srparxchewsend \
57        windsr2ew
58
59
60UNIX_MODULES = \
61        nmxptool \
62        q3302ew \
63        scream2ew  \
64        srparxchewsend \
65        q2ew
66
67#
68# List all modules to be compiled into the NT distribution
69
70#
71# List all modules to be compiled into the Solaris distribution
72#
73SOLARIS_MODULES = \
74        k2ew \
75        naqs2ew \
76        nmxptool \
77        q2ew \
78        q3302ew \
79        reboot_mss \
80        reboot_mss_ew \
81        reftek2ew  \
82        scream2ew 
83
84#
85# List all modules to be compiled into the NT distribution
86#
87
88# turned of adsend because most folks don't have the NI includes.
89
90NT_MODULES = \
91        k2ew \
92        naqs2ew \
93        psnadsend \
94        reboot_mss \
95        q3302ew \
96        reboot_mss_ew \
97        reftek2ew \
98        scream2ew  \
99        srparxchewsend \
100        windsr2ew
101
102#       if you've got the NI stuff, uncomment adsend and put it back in
103#       the list above
104#
105#       adsend \
106#
107#
108# DK 082402  Note:  The NT tree compilation will fail at adsend, unless you
109# comment out the adsend line above, or you have the National Instruments
110#       header files to compile adsend.
111
112#
113#  Top level directives
114#
115solaris: sol_modules
116nt: nt_modules
117unix: unix_modules
118
119
120#
121#  Solaris directives
122#
123sol_modules:: FRC
124        @for x in $(SOLARIS_MODULES); \
125        do \
126                (echo ------; cd $$x; echo Making $@ in:; pwd; \
127                make -f makefile.sol); \
128        done
129
130clean_solaris:
131        @for x in $(SOLARIS_MODULES); \
132        do \
133                (cd $$x; echo Cleaning in:; pwd; \
134                make -f makefile.sol clean); \
135        done
136
137clean_bin_solaris:
138        @for x in $(SOLARIS_MODULES); \
139        do \
140                (cd $$x; echo Cleaning binaries in:; pwd; \
141                make -f makefile.sol clean_bin); \
142        done
143
144#
145#  Unix directives
146#
147unix_modules:: FRC
148        @for x in $(UNIX_MODULES); \
149        do \
150                (echo ------; cd $$x; echo Making $@ in:; pwd; \
151                make -f makefile.ux); \
152        done
153
154clean_unix:
155        @for x in $(UNIX_MODULES); \
156        do \
157                (cd $$x; echo Cleaning in:; pwd; \
158                make -f makefile.sol clean); \
159        done
160
161clean_bin_unix:
162        @for x in $(UNIX_MODULES); \
163        do \
164                (cd $$x; echo Cleaning binaries in:; pwd; \
165                make -f makefile.sol clean_bin); \
166        done
167
168
169
170
171#
172#  NT directives
173#
174nt_modules:: FRC
175        @echo "Making Earthworm data_sources modules"
176        @nt_make_subdirs $(NT_MODULES)
177
178clean_nt:: FRC
179        @for %x in ($(NT_MODULES)) \
180        do \
181                @nt_clean %x
182
183clean_bin_nt:: FRC
184        @for %x in ($(NT_MODULES)) \
185        do \
186                @nt_clbin %x
187
188FRC:
Note: See TracBrowser for help on using the repository browser.