-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile.am
762 lines (648 loc) · 22.5 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
# ***************************************************************************
# Makefile for Hercules S/370, ESA/390 and z/Architecture emulator
# Process this file with 'automake' to produce Makefile.in
# ***************************************************************************
AUTOMAKE_OPTIONS = foreign 1.5
ACLOCAL_AMFLAGS = -I m4 -I autoconf
lns=@LN_S@
SUBDIRS = decNumber softfloat m4 util html man . crypto
LDADD = @LIBS@
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/decNumber -I$(top_srcdir)/softfloat
if BUILD_HERCIFC
HERCIFC = hercifc
else
HERCIFC=
endif
if BUILD_SHARED
HERCLIN=herclin
else
HERCLIN=
endif
fthreads_SRC = fthreads.c
fishio_SRC = w32chan.c
if BUILD_FTHREADS
FTHREADS = $(fthreads_SRC)
FISHIO = $(fishio_SRC)
else
FTHREADS =
FISHIO =
endif
# We need to still include the source for the dynamic modules
# in with the distribution regardless of whether or not the dyanmic
# modules themselves are to be built so if dynamic load not possible,
# then we need to include the source on the EXTRA_hercules_SOURCES
# statement so even though they won't/don't actually get built, they
# still nonetheless get included into distribution tarball. This is
# *similar* to (bit not identical to) the way the fthreads sources
# are handled. With the fthreads sources though, they can at least always
# be built (even though they may not always generate any actual code
# whenever they do) whereas the dynamic module source CANNOT (MUST not)
# even be *attempted* to be "built" if support for building dynamic modules
# doesn't even exist on the system doing the building.
dynamic_SRC = dyngui.c \
dyninst.c \
hdteq.c
dyndev_SRC = commadpt.c \
comm3705.c \
tcpnje.c \
console.c \
cardpch.c \
cardrdr.c \
sockdev.c \
printer.c \
tapedev.c \
tapeccws.c \
sllib.c \
hetlib.c \
awstape.c \
faketape.c \
hettape.c \
omatape.c \
scsitape.c \
w32stape.c \
ctc_lcs.c \
ctc_ctci.c \
ctcadpt.c \
w32ctca.c \
hchan.c \
tuntap.c \
qeth.c \
con1052c.c
# -module : create a dlopen'able module
# -no-undefined : required on all platform that do not allow shared modules
# to have undefined symbols
# $(LDADD) : Misc Linker flags set by autoconf
# -export-dynamic : so dlsym works (to be verified - not sure it is necessary)
# -avoid-version : needed.. Otherwise libtool gives crazy names to Windows
# DLLs
#
if BUILD_SHARED
XSTATIC =
else
XSTATIC = -static
endif
if OPTION_DYNAMIC_LOAD
DYNSRC =
LTDL = ltdl.c
DYNMOD_LD_FLAGS = -module \
-no-undefined \
$(XSTATIC) \
-export-dynamic \
-avoid-version
DYNMOD_LD_ADD = libherc.la \
libhercs.la \
libhercu.la \
$(LDADD)
LIB_LD_FLAGS = -export-dynamic \
$(XSTATIC) \
-no-undefined \
-avoid-version
else
DYNSRC = $(dyndev_SRC)
LTDL =
DYNMOD_LD_FLAGS =
DYNMOD_LD_ADD =
LIB_LD_FLAGS = $(XSTATIC) \
-no-undefined \
-avoid-version
endif
#
# List of Libtool shared libraries & loadable modules
#
HERCLIBS =
HERCLIBS2 = libhercs.la \
libhercu.la \
libherct.la \
libhercd.la \
libherc.la
HERCMODS = dyngui.la \
dyninst.la \
hdteq.la \
hdt1403.la \
hdt2703.la \
hdt3705.la \
hdttcpnje.la \
hdt3088.la \
hdt3270.la \
hdt3420.la \
hdt3505.la \
hdt2880.la \
hdt3525.la \
hdtqeth.la \
hdt1052c.la
if OPTION_DYNAMIC_LOAD
modexec_LTLIBRARIES = $(HERCMODS)
endif
noinst_LTLIBRARIES = $(HERCLIBS)
lib_LTLIBRARIES = $(HERCLIBS2)
# The following causes the dyanmic modules to not even get built
# unless support for building dynamic modules exists on the build system
bin_PROGRAMS = hercules \
dasdinit dasdisup dasdload dasdconv dasdls dasdcat dasdpdsu dasdseq \
tapecopy tapemap tapesplt \
cckdcdsk cckdcomp cckddiag cckdswap \
dasdcopy \
hetget hetinit hetmap hetupd \
dmap2hrc \
$(HERCIFC) \
$(HERCLIN)
EXTRA_PROGRAMS = hercifc
if OPTION_DYNAMIC_LOAD
#
# For each module:
#
# ModuleName_la_SOURCES = <list of source files>
# ModuleName_la_LDFLAGS = $(DYNMOD_LD_FLAGS) (see above)
# ModuleName_la_LIBADD = libherc.la (the Core Hercules Shared Library)
# ModuleName_la_DEPENDENCIES = libherc.la (may not be necessary)
#
dyngui_la_SOURCES = dyngui.c
dyngui_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
dyngui_la_LIBADD = $(DYNMOD_LD_ADD)
dyninst_la_SOURCES = dyninst.c
dyninst_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
dyninst_la_LIBADD = $(DYNMOD_LD_ADD)
hdteq_la_SOURCES = hdteq.c
hdteq_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdteq_la_LIBADD = $(DYNMOD_LD_ADD)
hdt1403_la_SOURCES = printer.c sockdev.c
hdt1403_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt1403_la_LIBADD = $(DYNMOD_LD_ADD)
hdt2880_la_SOURCES = hchan.c
hdt2880_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt2880_la_LIBADD = $(DYNMOD_LD_ADD)
hdt2703_la_SOURCES = commadpt.c
hdt2703_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt2703_la_LIBADD = $(DYNMOD_LD_ADD)
hdt3705_la_SOURCES = comm3705.c
hdt3705_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt3705_la_LIBADD = $(DYNMOD_LD_ADD)
hdttcpnje_la_SOURCES = tcpnje.c
hdttcpnje_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdttcpnje_la_LIBADD = $(DYNMOD_LD_ADD)
hdt3088_la_SOURCES = ctc_lcs.c ctc_ctci.c ctcadpt.c w32ctca.c tuntap.c
hdt3088_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt3088_la_LIBADD = $(DYNMOD_LD_ADD)
hdt3270_la_SOURCES = console.c
hdt3270_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt3270_la_LIBADD = $(DYNMOD_LD_ADD)
hdt3420_la_SOURCES = tapedev.c tapeccws.c awstape.c faketape.c hettape.c omatape.c scsitape.c w32stape.c
hdt3420_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt3420_la_LIBADD = $(DYNMOD_LD_ADD) libherct.la
hdt3505_la_SOURCES = cardrdr.c sockdev.c
hdt3505_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt3505_la_LIBADD = $(DYNMOD_LD_ADD)
hdt3525_la_SOURCES = cardpch.c
hdt3525_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt3525_la_LIBADD = $(DYNMOD_LD_ADD)
hdtqeth_la_SOURCES = qeth.c
hdtqeth_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdtqeth_la_LIBADD = $(DYNMOD_LD_ADD)
hdt1052c_la_SOURCES = con1052c.c
hdt1052c_la_LDFLAGS = $(DYNMOD_LD_FLAGS)
hdt1052c_la_LIBADD = $(DYNMOD_LD_ADD)
endif
#
# Common data areas (shared) library
#
libhercs_la_SOURCES = hsys.c
libhercs_la_LDFLAGS = $(LIB_LD_FLAGS)
libhercs_la_LIBADD = $(LDADD)
#
# Tape utility subroutines (shared) library
#
libherct_la_SOURCES = sllib.c \
hetlib.c
libherct_la_LDFLAGS = $(LIB_LD_FLAGS)
libherct_la_LIBADD = $(LDADD) libhercs.la libhercu.la
#
# DASD utility subroutines (shared) library
#
libhercd_la_SOURCES = ckddasd.c \
fbadasd.c \
cckddasd.c \
cckdutil.c \
dasdtab.c \
cache.c \
dasdutil.c \
shared.c
libhercd_la_LDFLAGS = $(LIB_LD_FLAGS)
libhercd_la_LIBADD = $(LDADD) libhercs.la libhercu.la
#
## Pure Utility functions
#
libhercu_la_SOURCES = version.c \
hscutl.c \
hscutl2.c \
codepage.c \
logger.c \
logmsg.c \
hdl.c \
hostinfo.c \
hsocket.c \
memrchr.c \
parser.c \
pttrace.c \
$(FTHREADS) \
$(LTDL)
libhercu_la_LDFLAGS = $(LIB_LD_FLAGS)
libhercu_la_LIBADD = $(LDADD) libhercs.la
#
# Core Hercules (shared) library
#
libherc_la_SOURCES = hconsole.c \
w32util.c \
strsignal.c \
impl.c \
config.c \
bldcfg.c \
panel.c \
history.c \
fillfnam.c \
ipl.c \
assist.c \
dat.c \
stack.c \
cpu.c \
vstore.c \
general1.c \
general2.c \
general3.c \
pfpo.c \
plo.c \
control.c \
crypto.c \
io.c \
decimal.c \
service.c \
scedasd.c \
losc.c \
chsc.c \
opcode.c \
diagnose.c \
diagmssf.c \
vm.c \
vmd250.c \
channel.c \
external.c \
float.c \
trace.c \
machchk.c \
vector.c \
xstore.c \
cmpsc.c \
sie.c \
qdio.c \
clock.c \
timer.c \
esame.c \
ieee.c \
dfp.c \
machdep.h \
httpserv.c \
cgibin.c \
loadparm.c \
hsccmd.c \
cmdtab.c \
hao.c \
hscmisc.c \
sr.c \
$(FISHIO) \
$(DYNSRC) \
ecpsvm.c
EXTRA_libherc_la_SOURCES = $(fthreads_SRC) \
$(fishio_SRC) \
memrchr.c \
$(dynamic_SRC) \
$(extra_SRC) \
$(dyndev_SRC) \
ltdl.c
libherc_la_LDFLAGS = $(LIB_LD_FLAGS)
libherc_la_LIBADD = libhercs.la \
libhercu.la \
libherct.la \
libhercd.la \
decNumber/libdecNumber.la \
softfloat/libsoftfloat.la \
$(LDADD)
#
# THIS is the hercules executable.
# hdlmain.c is requires so that dlopen(self) retrieves
# the 'main' hdl symbols
#
if OPTION_DYNAMIC_LOAD
if BUILD_SHARED
HLDFLAGS = -dlopen self
HDEPS =
else
HLDFLAGS = -dlopen self \
-dlopen dyngui.la \
-dlopen dyninst.la \
-dlopen hdteq.la \
-dlopen hdt1403.la \
-dlopen hdt3420.la \
-dlopen hdt2703.la \
-dlopen hdt3705.la \
-dlopen hdttcpnje.la \
-dlopen hdt3088.la \
-dlopen hdt3270.la \
-dlopen hdt3505.la \
-dlopen hdt3525.la \
-dlopen hdtqeth.la \
-dlopen hdt1052c.la
HDEPS = dyngui.la \
dyninst.la \
hdteq.la \
hdt1403.la \
hdt3420.la \
hdt2703.la \
hdt3705.la \
hdttcpnje.la \
hdt3088.la \
hdt3270.la \
hdt3505.la \
hdt3525.la \
hdtqeth.la \
hdt1052c.la \
libherc.la \
libherct.la \
libhercd.la
endif
else
HLDFLAGS =
HDEPS =
endif
hercules_SOURCES = bootstrap.c \
hdlmain.c
hercules_LDADD = libherc.la libhercs.la $(LDADD)
hercules_LDFLAGS = $(HLDFLAGS)
hercules_DEPENDENCIES = libherc.la libhercs.la $(HDEPS)
if BUILD_SHARED
herclin_SOURCES = herclin.c hdlmain.c
herclin_LDADD = libherc.la libhercs.la $(LDADD)
herclin_LDFLAGS = $(HLDFLAGS)
herclin_DEPENDENCIES = libherc.la libhercs.la $(HDEPS)
endif
#
# side binaries
#
tools_LD_FLAGS =
tools_ADDLIBS = $(HERCLIBS2) $(LDADD)
if BUILD_HERCIFC
hercifc_SOURCES = hercifc.c
hercifc_LDADD = $(tools_ADDLIBS)
hercifc_LDFLAGS = $(tools_LD_FLAGS)
endif
dasdinit_SOURCES = dasdinit.c
dasdinit_LDADD = $(tools_ADDLIBS)
dasdinit_LDFLAGS = $(tools_LD_FLAGS)
dasdisup_SOURCES = dasdisup.c
dasdisup_LDADD = $(tools_ADDLIBS)
dasdisup_LDFLAGS = $(tools_LD_FLAGS)
dasdload_SOURCES = dasdload.c
dasdload_LDADD = $(tools_ADDLIBS)
dasdload_LDFLAGS = $(tools_LD_FLAGS)
dasdconv_SOURCES = dasdconv.c
dasdconv_LDADD = $(tools_ADDLIBS)
dasdconv_LDFLAGS = $(tools_LD_FLAGS)
dasdls_SOURCES = dasdls.c
dasdls_LDADD = $(tools_ADDLIBS)
dasdls_LDFLAGS = $(tools_LD_FLAGS)
dasdcat_SOURCES = dasdcat.c
dasdcat_LDADD = $(tools_ADDLIBS)
dasdcat_LDFLAGS = $(tools_LD_FLAGS)
dasdpdsu_SOURCES = dasdpdsu.c
dasdpdsu_LDADD = $(tools_ADDLIBS)
dasdpdsu_LDFLAGS = $(tools_LD_FLAGS)
dasdseq_SOURCES = dasdseq.c
dasdseq_LDADD = $(tools_ADDLIBS)
dasdseq_LDFLAGS = $(tools_LD_FLAGS)
tapecopy_SOURCES = tapecopy.c
tapecopy_LDADD = $(tools_ADDLIBS)
tapecopy_LDFLAGS = $(tools_LD_FLAGS)
tapemap_SOURCES = tapemap.c
tapemap_LDADD = $(tools_ADDLIBS)
tapemap_LDFLAGS = $(tools_LD_FLAGS)
tapesplt_SOURCES = tapesplt.c
tapesplt_LDADD = $(tools_ADDLIBS)
tapesplt_LDFLAGS = $(tools_LD_FLAGS)
cckdcdsk_SOURCES = cckdcdsk.c
cckdcdsk_LDADD = $(tools_ADDLIBS)
cckdcdsk_LDFLAGS = $(tools_LD_FLAGS)
cckdcomp_SOURCES = cckdcomp.c
cckdcomp_LDADD = $(tools_ADDLIBS)
cckdcomp_LDFLAGS = $(tools_LD_FLAGS)
cckddiag_SOURCES = cckddiag.c
cckddiag_LDADD = $(tools_ADDLIBS)
cckddiag_LDFLAGS = $(tools_LD_FLAGS)
dasdcopy_SOURCES = dasdcopy.c
dasdcopy_LDADD = $(tools_ADDLIBS)
dasdcopy_LDFLAGS = $(tools_LD_FLAGS)
cckdswap_SOURCES = cckdswap.c
cckdswap_LDADD = $(tools_ADDLIBS)
cckdswap_LDFLAGS = $(tools_LD_FLAGS)
hetget_SOURCES = hetget.c
hetget_LDADD = $(tools_ADDLIBS)
hetget_LDFLAGS = $(tools_LD_FLAGS)
hetinit_SOURCES = hetinit.c
hetinit_LDADD = $(tools_ADDLIBS)
hetinit_LDFLAGS = $(tools_LD_FLAGS)
hetmap_SOURCES = hetmap.c
hetmap_LDADD = $(tools_ADDLIBS)
hetmap_LDFLAGS = $(tools_LD_FLAGS)
hetupd_SOURCES = hetupd.c
hetupd_LDADD = $(tools_ADDLIBS)
hetupd_LDFLAGS = $(tools_LD_FLAGS)
dmap2hrc_SOURCES = dmap2hrc.c
dmap2hrc_LDADD = $(tools_ADDLIBS)
dmap2hrc_LDFLAGS = $(tools_LD_FLAGS)
#
# files that are not 'built' per-se
#
#
# Also contains some WIN32 only source files
#
EXTRA_DIST = autoconf/config.rpath \
autoconf/mkinstalldirs \
COPYRIGHT \
hercules.cnf \
cckdfix.c \
README.COMMADPT \
README.DYNMOD \
README.ECPSVM \
README.HDL \
README.NETWORKING \
README.OSX \
README.TAPE \
README.HERCLOGO \
RELEASE.NOTES \
README.WIN32 \
README.WIN64 \
README.SUN \
makefile.msvc \
makefile-dllmod.msvc \
msvc.makefile.includes/BZIP2_DIR.msvc \
msvc.makefile.includes/BZIP2_FLAGS.msvc \
msvc.makefile.includes/BZIP2_RULES.msvc \
msvc.makefile.includes/CONFIG.msvc \
msvc.makefile.includes/DEBUG_RETAIL.msvc \
msvc.makefile.includes/HERC_FLAGS.msvc \
msvc.makefile.includes/MOD_RULES1.msvc \
msvc.makefile.includes/MOD_RULES2.msvc \
msvc.makefile.includes/MODULES.msvc \
msvc.makefile.includes/OBJ_CODE.msvc \
msvc.makefile.includes/OUTDIR_RULES.msvc \
msvc.makefile.includes/OUTPUT_DIRS.msvc \
msvc.makefile.includes/PCRE_DIR.msvc \
msvc.makefile.includes/PCRE_FLAGS.msvc \
msvc.makefile.includes/PCRE_RULES.msvc \
msvc.makefile.includes/PRIM_RULES.msvc \
msvc.makefile.includes/VERSION.msvc \
msvc.makefile.includes/ZLIB_DIR.msvc \
msvc.makefile.includes/ZLIB_FLAGS.msvc \
msvc.makefile.includes/ZLIB_RULES.msvc \
hercver.rc \
build_pch.c \
conspawn.c \
getopt.c \
herclogo.txt \
hercules.ico
#
# Source Header files. No 'build' for those
#
noinst_HEADERS = hostinfo.h \
cpuint.h \
feat370.h \
feat390.h \
feat900.h \
featall.h \
featchk.h \
feature.h \
esa390.h \
opcode.h \
clock.h \
hercules.h \
inline.h \
dat.h \
vstore.h \
hbyteswp.h \
dasdblks.h \
hetlib.h \
version.h \
parser.h \
dasdtab.h \
sllib.h \
htypes.h \
fthreads.h \
w32chan.h \
w32ctca.h \
tt32api.h \
linklist.h \
httpmisc.h \
devtype.h \
codepage.h \
ctcadpt.h \
hercifc.h \
tuntap.h \
tapedev.h \
scsitape.h \
logger.h \
commadpt.h \
comm3705.h \
tcpnje.h \
cache.h \
ecpsvm.h \
memrchr.h \
shared.h \
hscutl.h \
cmdtab.h \
hdl.h \
crypto.h \
sockdev.h \
ltdl.h \
herc_getopt.h \
service.h \
chsc.h \
pttrace.h \
history.h \
sr.h \
hatomic.h \
hchan.h \
fillfnam.h \
hthreads.h \
hostopts.h \
w32util.h \
hconsts.h \
hmacros.h \
hstructs.h \
hexterns.h \
hconsole.h \
hextapi.h \
hstdinc.h \
hstdint.h \
hsocket.h \
w32stape.h \
w32dl.h \
hercwind.h \
getopt.h \
w32mtio.h \
vmd250.h \
$(extra_dynamic_SRC)
cckd: cckd2ckd$(EXEEXT) \
cckdcdsk$(EXEEXT) \
cckddiag$(EXEEXT) \
cckdcomp$(EXEEXT) \
cckdswap$(EXEEXT) \
dasdcopy$(EXEEXT)
#########################################################
# B U I L D R U L E S . . .
#########################################################
#
# *** PROGRAMMING NOTE! ***
#
# The tabs in the below statements ARE significant!
# Not all make programs accept (handle correctly)
# make files that use blanks instead of tabs in their
# build rules. Thus in order to remain compatible
# with older make programs the below build rules
# MUST use *tabs* and NOT BLANKS!
#
#########################################################
tar: dist
install-exec-local:
install-exec-hook:
if BUILD_SHARED
rm -f $(DESTDIR)$(libdir)/libherc*.a
rm -f $(DESTDIR)$(modexecdir)/dyn*.a
rm -f $(DESTDIR)$(modexecdir)/hdt*.a
else
rm -f $(DESTDIR)$(libdir)/libherc*
endif
#
# NOTE : symbolic links point to FINAL destination (not to staged install)
#
rm -f $(DESTDIR)$(bindir)/fba2cfba$(EXEEXT)
(cd $(DESTDIR)$(bindir); @LN_S@ ./dasdcopy$(EXEEXT) fba2cfba$(EXEEXT))
rm -f $(DESTDIR)$(bindir)/ckd2cckd$(EXEEXT)
(cd $(DESTDIR)$(bindir); @LN_S@ ./dasdcopy$(EXEEXT) ckd2cckd$(EXEEXT))
rm -f $(DESTDIR)$(bindir)/cfba2fba$(EXEEXT)
(cd $(DESTDIR)$(bindir); @LN_S@ ./dasdcopy$(EXEEXT) cfba2fba$(EXEEXT))
rm -f $(DESTDIR)$(bindir)/cckd2ckd$(EXEEXT)
(cd $(DESTDIR)$(bindir); @LN_S@ ./dasdcopy$(EXEEXT) cckd2ckd$(EXEEXT))
if SETUID_HERCIFC
chown root $(DESTDIR)$(bindir)/hercifc
if HERCIFC_GROUPSET
chgrp $(HERCIFC_GROUPNAME) $(DESTDIR)$(bindir)/hercifc
endif
chmod 0750 $(DESTDIR)$(bindir)/hercifc
chmod +s $(DESTDIR)$(bindir)/hercifc
rm hercifc
endif
uninstall-local:
uninstall-hook:
rm -f $(DESTDIR)$(bindir)/fba2cfba$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/ckd2cckd$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/cfba2fba$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/cckd2ckd$(EXEEXT)
%.s: %.c
$(COMPILE) -S $<