forked from wynne0/altibase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
1095 lines (877 loc) · 38.3 KB
/
Makefile
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
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# $id: makefile 20363 2007-02-07 08:32:54Z shawn $
#
include ./env.mk
###################################################################
#
# Definition & Base clean section
#
###################################################################
DIRS=$(CORE_DIR) $(PD_DIR) $(ID_DIR) $(CM_DIR) $(SM_DIR) $(MT_DIR) $(RP_DIR) $(QP_DIR) $(SD_DIR) $(DK_DIR) $(MM_DIR) $(UL_DIR) $(UT_DIR) $(TOOL_DIR) $(ST_DIR) $(ID_DIR)/util $(QP_DIR)/util
SODIRS=$(PD_DIR) $(ID_DIR) $(CM_DIR) $(SM_DIR) $(MT_DIR) $(RP_DIR) $(QP_DIR) $(SD_DIR) $(ST_DIR) $(DK_DIR) $(MM_DIR)
CLIDIRS=$(CORE_DIR) $(PD_DIR) $(ID_DIR) $(CM_DIR) $(MT_DIR) $(UL_DIR) $(TOOL_DIR) $(ST_DIR)
# -------------------------------------------------------------------
# TASK-3873
# CodeSonar Build
# -------------------------------------------------------------------
DIRS_CODESONAR_SERVER=$(CORE_DIR) $(PD_DIR) $(ID_DIR) $(CM_DIR) $(SM_DIR) $(MT_DIR) $(RP_DIR) $(QP_DIR) $(SD_DIR) $(ST_DIR) $(DK_DIR) $(MM_DIR)
DIRS_CODESONAR_SM=$(CORE_DIR) $(PD_DIR) $(ID_DIR) $(SM_DIR)
DIRS_CODESONAR_CM=$(CORE_DIR) $(PD_DIR) $(ID_DIR) $(CM_DIR)
all: help
include ./moddep.mk
.PHONY: $(DIRS)
$(DIRS):
$(MAKE) -C $@ $(SUBDIR_TARGET)
###################################################################
#
# CLIENT (sure/release) section
#
###################################################################
# -------------------------------------------------------------------
# CLIENT BUILD LOGIC
# -------------------------------------------------------------------
clean_cli: makemsg
$(MAKE) $(CLIDIRS) SUBDIR_TARGET=clean
build_cli: makemsg alemon
$(MAKE) $(CLIDIRS)
$(MAKE) -C $(UT_DIR) build_cli;
# bash, or cygwin env so we can use shell script grammer.
test_cli:
cd $(ATC_HOME)/src && $(MAKE) clean;
cd $(ATC_HOME)/src && $(MAKE) install;
cd $(ATC_HOME)/; sh run.sh "TC/A4-Client.ts"
build_all_cli:
$(MAKE) clean_cli
$(MAKE) build_cli
$(MAKE) $(S) distA3Developer # Need this for altibase_env.mk
$(MAKE) test_cli
# -------------------------------------------------------------------
# release mode
# -------------------------------------------------------------------
release_cli:
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release
$(MAKE) build_all_cli
release32_cli:
cd $(DEV_DIR); $(CONFIGURE) --enable-bit32 --with-build_mode=release
$(MAKE) build_all_cli
releasegcc_cli:
cd $(DEV_DIR); $(CONFIGURE) --enable-gcc --with-build_mode=release
$(MAKE) build_all_cli
releasegcc32_cli:
cd $(DEV_DIR); $(CONFIGURE) --enable-bit32 --enable-gcc --with-build_mode=release
$(MAKE) build_all_cli
release32compat4_cli:
cd $(DEV_DIR); $(CONFIGURE) --enable-compat4 --enable-bit32 --with-build_mode=release
$(MAKE) build_all_cli
# -------------------------------------------------------------------
# debug mode
# -------------------------------------------------------------------
sure_cli:
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=debug
$(MAKE) build_all_cli
sure32_cli:
cd $(DEV_DIR); $(CONFIGURE) --enable-bit32 --with-build_mode=debug
$(MAKE) build_all_cli
suregcc_cli:
cd $(DEV_DIR); $(CONFIGURE) --enable-gcc --with-build_mode=debug
$(MAKE) build_all_cli
suregcc32_cli:
cd $(DEV_DIR); $(CONFIGURE) --enable-bit32 --enable-gcc --with-build_mode=debug
$(MAKE) build_all_cli
# -------------------------------------------------------------------
# release for gcc
# -------------------------------------------------------------------
releasegcc_cli_test:
$(MAKE) releasegcc_cli
$(MAKE) dist_client
gzip -cd $(RELEASE_CLIENT_DIST_NAME) | tar xvf - -C $(ALTI_HOME)
cd $(ATC_HOME)/; $(MAKE) all
releasegcc32_cli_test:
$(MAKE) releasegcc32_cli
$(MAKE) dist_client
gzip -cd $(RELEASE_CLIENT_DIST_NAME) | tar xvf - -C $(ALTI_HOME)
cd $(ATC_HOME)/; $(MAKE) all
# -------------------------------------------------------------------
# debug for gcc
# -------------------------------------------------------------------
suregcc_cli_test:
$(MAKE) suregcc_cli
$(MAKE) dist_client
gzip -d $(RELEASE_CLIENT_DIST_NAME) | tar xvf - -C $(ALTI_HOME)
cd $(ATC_HOME)/; $(MAKE) all
suregcc32_cli_test:
$(MAKE) suregcc32_cli
$(MAKE) dist_client
gzip -d $(RELEASE_CLIENT_DIST_NAME) | tar xvf - -C $(ALTI_HOME)
cd $(ATC_HOME)/; $(MAKE) all
###################################################################
#
# SERVER (sure/release) section
#
###################################################################
# -------------------------------------------------------------------
# server relase mode
# -------------------------------------------------------------------
release:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release
$(Q) $(MAKE) $(S) build_all
$(Q) $(MAKE) $(S) a3_test
release32:
cd $(DEV_DIR); $(CONFIGURE) --enable-bit32 --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
release32_lf:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-largefile
$(Q) $(MAKE) $(S) build_all
$(Q) $(MAKE) $(S) a3_test
releasepowerpclinux32:
cd $(DEV_DIR); $(CONFIGURE) --target=powerpc-linux --enable-bit32 --with-build_mode=release
$(MAKE) build_all
releasearmlinux32:
cd $(DEV_DIR); $(CONFIGURE) --enable-nosmp --enable-mobile --host=i686-redhat-linux-gnu --target=arm-linux --enable-bit32 --with-build_mode=release
$(MAKE) build_all
release32_eldk:
cd $(DEV_DIR); $(CONFIGURE) --enable-nosmp --enable-mobile --host=i686-redhat-linux-gnu --target=eldk-linux --enable-bit32 --with-build_mode=release
$(MAKE) build_all
release32_mips64:
cd $(DEV_DIR); $(CONFIGURE) --enable-nosmp --enable-mobile --host=i686-redhat-linux-gnu --target=mips64-linux --enable-bit32 --with-build_mode=release
$(MAKE) build_all
release32compat4:
cd $(DEV_DIR); $(CONFIGURE) --enable-compat4 --enable-bit32 --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
releasegcc:
cd $(DEV_DIR); $(CONFIGURE) --enable-gcc --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
releasegcc_blocksigterm:
cd $(DEV_DIR); $(CONFIGURE) --enable-gcc --with-build_mode=release --enable-blocksigterm
$(MAKE) build_all
$(MAKE) a3_test
releasegcc32:
cd $(DEV_DIR); $(CONFIGURE) --enable-bit32 --enable-gcc --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
releaseicc:
cd $(DEV_DIR); $(CONFIGURE) --enable-icc --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
release_mobile:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-mobile --enable-bit32 --enable-nosmp
$(Q) $(MAKE) $(S) build_all
$(Q) $(MAKE) $(S) a3_test
release_shared:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-shared=y
$(Q) $(MAKE) $(S) build_all
#$(Q) make $(S) a3_test
# -------------------------------------------------------------------
# prerelease mode
# -------------------------------------------------------------------
prerelease:
cd $(DEV_DIR); $(CONFIGURE) --enable-compat4 --with-build_mode=prerelease
$(Q) $(MAKE) $(S) build_all
prerelease64:
$(MAKE) -f Makefile prerelease
prerelease32:
cd $(DEV_DIR); $(CONFIGURE) --enable-compat4 --enable-bit32 --with-build_mode=prerelease
$(Q) $(MAKE) $(S) build_all
# -------------------------------------------------------------------
# server debug
# -------------------------------------------------------------------
sure:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=debug
$(Q) $(MAKE) $(S) build_all
$(Q) $(MAKE) $(S) a3_test
sureicc:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --enable-icc --with-build_mode=debug
$(Q) $(MAKE) $(S) build_all
$(Q) $(MAKE) $(S) a3_test
sure32:
cd $(DEV_DIR); $(CONFIGURE) --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
sure32_lf:
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=debug --enable-largefile
$(MAKE) build_all
$(MAKE) a3_test
surepowerpclinux32:
cd $(DEV_DIR); $(CONFIGURE) --target=powerpc-linux --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
surearmlinux32:
cd $(DEV_DIR); $(CONFIGURE) --enable-nosmp --enable-mobile --host=i686-redhat-linux-gnu --target=arm-linux --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
sure32_eldk:
cd $(DEV_DIR); $(CONFIGURE) --enable-nosmp --enable-mobile --host=i686-redhat-linux-gnu --target=eldk-linux --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
sure32_mips64:
cd $(DEV_DIR); $(CONFIGURE) --enable-nosmp --enable-mobile --host=i686-redhat-linux-gnu --target=mips64-linux --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
sure32compat4:
cd $(DEV_DIR); $(CONFIGURE) --enable-compat4 --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
suregcc:
cd $(DEV_DIR); $(CONFIGURE) --enable-gcc --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
suregcc32:
cd $(DEV_DIR); $(CONFIGURE) --enable-gcc --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
sure_mobile:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=debug --enable-mobile --enable-bit32 --enable-nosmp
$(Q) $(MAKE) $(S) build_all
$(Q) $(MAKE) $(S) a3_test
sure_shared:
$(Q) cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=debug --enable-shared=y
$(Q) $(MAKE) $(S) build_all
#$(Q) make $(S) a3_test
# Task-1994 초고속 Coverage측정방법 고안
suregcov:
cd $(DEV_DIR); $(CONFIGURE) --enable-gcc --enable-gcov --with-build_mode=debug
$(MAKE) build_all
# -------------------------------------------------------------------
# server (release/debug) memcheck
# -------------------------------------------------------------------
release_memcheck_valgrind:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-usevalgrind --with-build_mode=release
$(MAKE) build_all
release_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
release32_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-bit32 --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
release32compat4_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-compat4 --enable-bit32 --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
releasegcc_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-gcc --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
releasegcc32_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-bit32 --enable-gcc --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
sure_memcheck_valgrind:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-usevalgrind --with-build_mode=debug
$(MAKE) build_all
sure_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
sure32_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
sure32compat4_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-compat4 --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
suregcc_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-gcc --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
suregcc32_memcheck:
cd $(DEV_DIR); $(CONFIGURE) --enable-memcheck --enable-gcc --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
###################################################################
#
# RELEASE FOR SM TEST
#
###################################################################
# -------------------------------------------------------------------
# release sm-test
# -------------------------------------------------------------------
release_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
release32_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-bit32 --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
release32compat4_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-compat4 --enable-bit32 --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
releasegcc_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-gcc --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
releasegcc32_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-bit32 --enable-gcc --with-build_mode=release
$(MAKE) build_all
$(MAKE) a3_test
# -------------------------------------------------------------------
# debug sm-test
# -------------------------------------------------------------------
sure_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
sure32_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
sure32compat4_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-compat4 --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
suregcc_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-gcc --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
suregcc32_smtest:
cd $(DEV_DIR); $(CONFIGURE) --enable-sm_module_test --enable-gcc --enable-bit32 --with-build_mode=debug
$(MAKE) build_all
$(MAKE) a3_test
###################################################################
# BUILD COMMON
###################################################################
.PHONY: alemon
alemon:
$(MAKE) $(S) -C tool/alemon
build_eclipse:
build: alemon
$(MAKE) $(S) makemsg
$(MAKE) $(S) $(DIRS) SUBDIR_TARGET=$(S)
$(MAKE) -C $(SM_DIR)/util all_after
# Link shared libs after all other modules bulid
# Build shared libs only if unittesting enabled.
ifeq ($(DO_UNITTEST), yes)
$(MAKE) $(S) $(SODIRS) SUBDIR_TARGET="-s link_solib"
endif
$(MAKE) $(S) distA3Developer
ifeq ($(DO_UNITTEST), yes)
$(MAKE) unittest
endif
build_all:
$(MAKE) clean
$(MAKE) build
a3_test:
$(MAKE) -C $(ATC_HOME)/src clean;
$(MAKE) -C $(ATC_HOME)/src install;
$(MAKE) -C $(ATC_HOME) all;
tsm_test:
$(Q) $(MAKE) -C $(SM_DIR) all
$(Q) $(MAKE) -C $(DEV_DIR)/tsrc/sm/tsm/src all
$(Q) $(MAKE) -C $(DEV_DIR)/tsrc/sm/tsm all
clean:
$(MAKE) $(S) $(DIRS) SUBDIR_TARGET=clean
$(RM) $(ALTI_HOME)/lib/*.$(LIBEXT)
$(RM) $(ALTI_HOME)/lib/*.$(SOEXT)
$(RM) $(ALTI_HOME)/lib/*.jar
$(RM) $(ALTI_HOME)/msg/*.msb
$(RM) $(ALTI_HOME)/msg/*.ban
$(RM) $(TARGET_DIR)
clean_all: clean
# -------------------------------------------------------------------
# TASK-3873
# CodeSonar Build
# -------------------------------------------------------------------
build_codesonar_tsm:
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release
$(MAKE) $(S) makemsg
$(MAKE) $(S) $(DIRS_CODESONAR_SM) SUBDIR_TARGET=$(S)
$(Q) $(MAKE) -C $(DEV_DIR)/tsrc/sm/tsm/src all
build_codesonar_cm:
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release
$(MAKE) $(S) makemsg
$(MAKE) $(S) $(DIRS_CODESONAR_CM) SUBDIR_TARGET=$(S)
build_codesonar_sm:
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release
$(MAKE) $(S) makemsg
$(MAKE) $(S) $(DIRS_CODESONAR_SM) SUBDIR_TARGET=$(S)
build_codesonar_server:
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release
$(MAKE) $(S) makemsg
$(MAKE) $(S) $(DIRS_CODESONAR_SERVER) SUBDIR_TARGET=$(S)
###################################################################
#
# BUILD FOR ATAF
#
# ATAF build를 위해서 altibase를 최소한으로 빌드한다.
###################################################################
build_ataf:
ifeq "$(OS_TARGET)" "HP_HPUX"
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-bit32
else
ifeq "$(OS_TARGET)" "IA64_HP_HPUX"
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-bit32
else
ifeq "$(OS_TARGET)" "SPARC_SOLARIS"
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-bit32 --enable-gcc
else
ifeq "$(OS_TARGET)" "X86_SOLARIS"
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-bit32 --enable-gcc
else
ifeq "$(OS_TARGET)" "IBM_AIX"
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-bit32
else
ifeq "$(OS_TARGET)" "DEC_TRU64"
cp $(DEV_DIR)/../ataf/port/dec/platform_tru64_g++.GNU $(DEV_DIR)/pd/makefiles/platform_tru64_cxx.GNU
cp $(DEV_DIR)/../ataf/port/dec/dec_tru64_g++.mk $(DEV_DIR)/pd/makefiles2/dec_tru64_cxx.mk
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-bit32 --enable-gcc
else
ifeq "$(OS_TARGET)" "INTEL_LINUX"
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release --enable-bit32
else
cd $(DEV_DIR); $(CONFIGURE) --with-build_mode=release
endif
endif
endif
endif
endif
endif
endif
# make clean_cli;
-cd $(CORE_DIR); $(MAKE)
-cd $(PD_DIR); $(MAKE)
-cd $(ID_DIR); $(MAKE)
-cd $(CM_DIR); $(MAKE)
-cd $(SM_DIR); $(MAKE)
-cd $(MT_DIR)/msg; $(MAKE)
-cd $(MT_DIR)/mtd; $(MAKE) mtddl.o
-cd $(QP_DIR)/msg; $(MAKE)
-cd $(SD_DIR)/msg; $(MAKE)
-cd $(RP_DIR)/msg; $(MAKE)
-cd $(DK_DIR)/msg; $(MAKE)
-cd $(MM_DIR)/msg; $(MAKE)
-cd $(UL_DIR)/msg; $(MAKE)
-cd $(UL_DIR)/lib; $(MAKE) odbccli_shared
-cd $(UL_DIR)/ulp; $(MAKE)
-cd $(UT_DIR)/msg; $(MAKE)
-cd $(UT_DIR)/util; $(MAKE)
-cd $(UT_DIR)/lib; $(MAKE)
-cd $(UT_DIR)/ses3/src; $(MAKE)
-cd $(TOOL_DIR)/altipkg; $(MAKE)
-$(MAKE) distA3Developer
-cd $(ATC_HOME)/src; $(MAKE)
###################################################################
#
# Message File & Manual Section
#
###################################################################
MSG_TARGET_DIR = \
$(ID_DIR)/msg \
$(CM_DIR)/msg \
$(SM_DIR)/msg \
$(MT_DIR)/msg \
$(RP_DIR)/msg \
$(QP_DIR)/msg \
$(SD_DIR)/msg \
$(ST_DIR)/msg \
$(MM_DIR)/msg \
$(UL_DIR)/msg \
$(UT_DIR)/msg \
$(DK_DIR)/msg \
.PHONY: $(MSG_TARGET_DIR)
$(MSG_TARGET_DIR):
$(MAKE) -C $@ $(SUBDIR_TARGET)
.PHONY: cleanmsg
cleanmsg:
$(MAKE) $(MSG_TARGET_DIR) SUBDIR_TARGET=clean
.PHONY: makemsg
makemsg:
$(MAKE) $(MSG_TARGET_DIR) SUBDIR_TARGET=all
manual:
$(MAKE) $(MSG_TARGET_DIR) SUBDIR_TARGET=manual
cat $(ALTI_HOME)/msg/E_ID_US7ASCII.txt $(ALTI_HOME)/msg/E_SM_US7ASCII.txt $(ALTI_HOME)/msg/E_MT_US7ASCII.txt $(ALTI_HOME)/msg/E_RP_US7ASCII.txt $(ALTI_HOME)/msg/E_QP_US7ASCII.txt $(ALTI_HOME)/msg/E_SD_US7ASCII.txt $(ALTI_HOME)/msg/E_ST_US7ASCII.txt $(ALTI_HOME)/msg/E_MM_US7ASCII.txt $(ALTI_HOME)/msg/E_UL_US7ASCII.txt $(ALTI_HOME)/msg/E_LP_US7ASCII.txt $(ALTI_HOME)/msg/E_UT_US7ASCII.txt $(ALTI_HOME)/msg/E_CM_US7ASCII.txt $(ALTI_HOME)/msg/E_DK_US7ASCII.txt $(ALTI_HOME)/msg/E_LA_US7ASCII.txt > install/manual.txt
manual_clean:
$(MAKE) -C $(MSG_TARGET_DIR) clean
###################################################################
#
# OLD DIST Section
#
###################################################################
# back compatibility
distcopy:
$(Q) $(MAKE) pkgdistForDev
distA3Developer: altibase_env.mk
$(Q) $(MAKE) pkgdistForDev
$(Q) $(MAKE) pkgdistForNATC
dist: altibase_env.mk manual
$(Q) $(MAKE) pkg_server
dist_global: altibase_env.mk manual
$(Q) $(MAKE) pkg_server
#===============================================================================
# Package Section
#===============================================================================
PKG_MAP=pkg.map
PKG_TEMP_MAP=pkg_temp.map
PKG_DOTNET_PROVIDER_MAP=pkg_dotnet_provider.map
PKG_NATC_MAP=pkg_natc.map
PKG_EXE="$(TOOL_DIR)/altipkg/altipkg$(BINEXT)"
VALUEPACK_NAME=Altibase_Client_$(PKG_VERSION_INFO)_Value_Package
INSTALLBUILDER_DIR=$(DEV_DIR)/ut/Installer
ALTI_PKG_IB_XML_NAME_VP=clientValuepack.xml
# ifeq ($(CROSS_COMPILE),)
# PKG_VERSION_INFO=$(shell $(GENERRMSG) -k)
# else
# PKG_VERSION_INFO=$(OS_TARGET)-$(BUILD_MODE)-GCC
# endif
# ex) 5,5,1 / 5_5_1
ifeq "$(OS_TARGET)" "SPARC_SOLARIS"
PGM_MAJOR_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$4}'|awk -F'.' '{print $$1}')
PGM_MINOR_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$4}'|awk -F'.' '{print $$2}')
PGM_TERM_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$4}'|awk -F'.' '{print $$3}')
PGM_TAGSET_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$4}'|awk -F'.' '{print $$4}')
PGM_TAG_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$4}'|awk -F'.' '{print $$5}')
else
PGM_MAJOR_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$3}'|awk -F'.' '{print $$1}')
PGM_MINOR_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$3}'|awk -F'.' '{print $$2}')
PGM_TERM_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$3}'|awk -F'.' '{print $$3}')
PGM_TAGSET_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$3}'|awk -F'.' '{print $$4}')
PGM_TAG_VER=$(shell $(GENERRMSG) -k|awk -F'-' '{print $$3}'|awk -F'.' '{print $$5}')
endif
PKG_VERSION_INFO="$(PGM_MAJOR_VER).$(PGM_MINOR_VER).$(PGM_TERM_VER)"
PKG_VERSION_INFO_PKGNAME="$(PGM_MAJOR_VER)_$(PGM_MINOR_VER)_$(PGM_TERM_VER)"
PKG_FULL_VERSION_INFO="$(PKG_VERSION_INFO).$(PGM_TAGSET_VER).$(PGM_TAG_VER)"
SVN_REPOSITORY=$(shell svn info | grep URL |awk -F'/' '{print "/"$$4"/"$$5"/"$$6}')
ifeq "$(OS_TARGET)" "POWERPC64LE_LINUX"
ALTI_CFG_CPU:="$(ALTI_CFG_CPU)LE"
endif
PKG_PLATFORM_INFO=$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-$(BUILD_MODE)
PKG_REVISION_INFO=$(shell LC_ALL=C svn info | grep Revision)
PKG_REVISION_NUM=$(shell echo $(PKG_REVISION_INFO) | awk -F' ' '{print $$2}')
UNOFFICIAL_SERVER_DIST_NAME="altibase-server-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-UNOFFICIAL-R$(PKG_REVISION_NUM)"
UNOFFICIAL_CLIENT_DIST_NAME="altibase-client-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-UNOFFICIAL-R$(PKG_REVISION_NUM)"
RELEASE_SERVER_DIST_NAME="altibase-server-$(PKG_VERSION_INFO).$(PKG_TAGSET_NAME)-$(PKG_PLATFORM_INFO)"
RELEASE_CLIENT_DIST_NAME="altibase-client-$(PKG_VERSION_INFO).$(PKG_TAGSET_NAME)-$(PKG_PLATFORM_INFO)"
DIAGNOSTIC_SERVER_DIST_NAME="altibase-server-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-DIAGNOSTIC-R$(PKG_REVISION_NUM)"
DIAGNOSTIC_CLIENT_DIST_NAME="altibase-client-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-DIAGNOSTIC-R$(PKG_REVISION_NUM)"
OFFICIAL_SERVER_DIST_NAME="altibase-server-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-$(BUILD_MODE)"
OFFICIAL_CLIENT_DIST_NAME="altibase-client-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-$(BUILD_MODE)"
TAR_SERVER_DIST_NAME="altibase-server-$(PKG_VERSION_INFO).$(PKG_TAGSET_NAME).$(PKG_TAG_NAME)-$(PKG_PLATFORM_INFO)"
COMMUNITY_SERVER_DIST_NAME="altibase-CE-server-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-$(BUILD_MODE)"
OPEN_SERVER_DIST_NAME="altibase-OE-server-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-$(BUILD_MODE)"
ODBC_DIST_NAME="altibase-ODBC-$(PKG_FULL_VERSION_INFO)-$(ALTI_CFG_OS)-$(ALTI_CFG_CPU)-$(ALTI_CFG_BITTYPE)bit-$(BUILD_MODE)"
RELEASE_SERVER_DIST_NAME_PATCH=$(RELEASE_SERVER_DIST_NAME)-patch_$(FROM_PKG_TAGSET_NAME)_$(FROM_PKG_TAG_NAME)_$(PKG_TAGSET_NAME)_$(PKG_TAG_NAME)
RELEASE_CLIENT_DIST_NAME_PATCH=$(RELEASE_CLIENT_DIST_NAME)-patch_$(FROM_PKG_TAGSET_NAME)_$(FROM_PKG_TAG_NAME)_$(PKG_TAGSET_NAME)_$(PKG_TAG_NAME)
SERVER_DIST_DIR=$(DEV_DIR)/altipkgdir_server
CLIENT_DIST_DIR=$(DEV_DIR)/altipkgdir_client
SERVER_DIST_DIR_PATCH=$(SERVER_DIST_DIR)_patch
CLIENT_DIST_DIR_PATCH=$(CLIENT_DIST_DIR)_patch
PATCH_DIR=$(WORK_DIR)/APatch
PATCH_SVN_BUGINFO_FILE=$(PATCH_DIR)/pkg_patch_$(FROM_PKG_TAGSET_NAME)_$(FROM_PKG_TAG_NAME)_$(PKG_TAGSET_NAME)_$(PKG_TAG_NAME).txt
INSTALL_BUILDER=builder
DIST_ALL_ARG = -a "$(ALTI_CFG_CPU)" -a "$(ALTI_CFG_OS)" -a "$(ALTI_CFG_OS_MAJOR)" -a "$(ALTI_CFG_OS_MINOR)" -a "$(ALTI_CFG_EDITION)" -a "$(ALTI_PKG_TYPE)" -a "$(ALTI_CFG_BITTYPE)" -a "$(COMPILER_NAME)" -a "$(BINEXT)" -a ".$(OBJEXT)" -a "$(LIBPRE)" -a ".$(LIBEXT)" -a ".$(SOEXT)"
#defualt Value : base pkg tagset= 0
FROM_PKG_TAGSET_NAME=0
#defualt Value : base pkg tag = 0
FROM_PKG_TAG_NAME=0
client_name:
@echo $(RELEASE_CLIENT_DIST_NAME)
server_name:
@echo $(RELEASE_CLIENT_DIST_NAME)
# copy files for users
pkgdistForDev: altibase_env.mk
$(MAKE) -f Makefile pkgCopyforDev ALTI_PKG_TYPE="*"
# copy files for NATC
pkgdistForNATC: altibase_env.mk
$(MAKE) -f Makefile pkgCopyforNATC ALTI_PKG_TYPE="*"
pkgCopyforNATC:
-$(PKG_EXE) -m "$(PKG_NATC_MAP)" -q -e -r "$(ALTI_HOME)" -d $(DIST_ALL_ARG)
pkgCopyforDev:
$(PKG_EXE) -m "$(PKG_MAP)" -q -e -r "$(ALTI_HOME)" -d $(DIST_ALL_ARG)
pkgdist:
$(RM) $(WORK_DIR)
# bug-24436: add .net driver to package when vc >= 8(MSC_VER:14)
"$(TOOL_DIR)/altipkg/altipkg$(BINEXT)" -m "$(PKG_MAP)" -r "$(WORK_DIR)" -d $(DIST_ALL_ARG)
echo "Repository: $(SVN_REPOSITORY)" >$(PATCH_SVN_BUGINFO_FILE)
echo $(PKG_REVISION_INFO) >>$(PATCH_SVN_BUGINFO_FILE);
LC_ALL=C svn info | grep "Last Changed Rev" >>$(PATCH_SVN_BUGINFO_FILE);
$(MAKE) patch_Info;
$(MAKE) platform_Info
pkgdist_patch:
$(RM) $(WORK_DIR)
"$(TOOL_DIR)/altipkg/altipkg$(BINEXT)" -m "$(PKG_MAP)" -r "$(WORK_DIR)" -d $(DIST_ALL_ARG)
echo "Repository: $(SVN_REPOSITORY)" >$(PATCH_SVN_BUGINFO_FILE)
echo $(PKG_REVISION_INFO) >>$(PATCH_SVN_BUGINFO_FILE);
LC_ALL=C svn info | grep "Last Changed Rev" >>$(PATCH_SVN_BUGINFO_FILE);
$(MAKE) patch_Info
$(MAKE) platform_Info
#MAKE PATCH INFO
patch_Info:
ifeq "$(ALTI_PKG_TYPE)" "*" # SERVER
echo "PRODUCT_SIGNATURE=server-$(PKG_VERSION_INFO)-"$(ALTI_CFG_BITTYPE)"-"$(BUILD_MODE) >>$(PATCH_DIR)/patchinfo
else # CLIENT
echo "PRODUCT_SIGNATURE=client-$(PKG_VERSION_INFO)-"$(ALTI_CFG_BITTYPE)"-"$(BUILD_MODE) >>$(PATCH_DIR)/patchinfo
endif
echo "PATCH_VERSION="$(FROM_PKG_TAGSET_NAME)_$(FROM_PKG_TAG_NAME)_$(PKG_TAGSET_NAME)_$(PKG_TAG_NAME) >>$(PATCH_DIR)/patchinfo
platform_Info :
echo >>$(PATCH_DIR)/patchinfo
echo "======= OS INFO =======" >>$(PATCH_DIR)/patchinfo
uname -a >>$(PATCH_DIR)/patchinfo
ifeq "$(ALTI_CFG_OS)" "HPUX"
echo "======= PATCH INFO =======" >>$(PATCH_DIR)/patchinfo
LC_ALL=C swlist |grep -E -i "gold|qpk" >>$(PATCH_DIR)/patchinfo
echo "======= COMPILER INFO =======" >>$(PATCH_DIR)/patchinfo
/opt/aCC/bin/aCC -Version >>$(PATCH_DIR)/patchinfo 2>&1
endif
ifeq "$(ALTI_CFG_OS)" "LINUX"
echo "======= PATCH INFO =======" >>$(PATCH_DIR)/patchinfo
uname -r >>$(PATCH_DIR)/patchinfo
echo "======= COMPILER INFO =======" >>$(PATCH_DIR)/patchinfo
LC_ALL=C gcc -v 2>&1 |grep -i "gcc version" >>$(PATCH_DIR)/patchinfo
getconf GNU_LIBC_VERSION >>$(PATCH_DIR)/patchinfo
endif
ifeq "$(ALTI_CFG_OS)" "AIX"
echo "======= PATCH INFO =======" >>$(PATCH_DIR)/patchinfo
oslevel -r >>$(PATCH_DIR)/patchinfo
echo "======= COMPILER INFO =======" >>$(PATCH_DIR)/patchinfo
echo $(shell /usr/vac/bin/xlc -qversion) >>$(PATCH_DIR)/patchinfo
endif
ifeq "$(ALTI_CFG_OS)" "SOLARIS"
echo "======= PATCH INFO =======" >>$(PATCH_DIR)/patchinfo
ls /var/sadm/patch | tail -1 >>$(PATCH_DIR)/patchinfo
echo "======= COMPILER INFO =======" >>$(PATCH_DIR)/patchinfo
/opt/SUNWspro/bin/CC -V >>$(PATCH_DIR)/patchinfo 2>&1
endif
echo "======= JAVA INFO =======" >>$(PATCH_DIR)/patchinfo
java -version >>$(PATCH_DIR)/patchinfo 2>&1
additional_files_tar :
cp ${HOME}/work/pgm_pkg/altibase_java/Altibase$(PGM_MAJOR_VER)_$(PGM_MINOR_VER).jar $(WORK_DIR)/lib/Altibase$(PGM_MAJOR_VER)_$(PGM_MINOR_VER).jar
cp ${HOME}/work/pgm_pkg/altibase_java/Altibase.jar $(WORK_DIR)/lib/Altibase.jar
cp ${HOME}/work/pgm_pkg/altibase_java/Altibase_t.jar $(WORK_DIR)/lib/Altibase_t.jar
cp ${HOME}/work/pgm_pkg/altibase_java/altilinker.jar $(WORK_DIR)/bin/altilinker.jar
additional_files_jdbc :
cp $(ALTI_HOME)/lib/Altibase$(PGM_MAJOR_VER)_$(PGM_MINOR_VER).jar $(WORK_DIR)/lib/Altibase$(PGM_MAJOR_VER)_$(PGM_MINOR_VER).jar
cp $(ALTI_HOME)/lib/Altibase.jar $(WORK_DIR)/lib/Altibase.jar
cp $(ALTI_HOME)/lib/Altibase_t.jar $(WORK_DIR)/lib/Altibase_t.jar
additional_files_altilinker :
# Altibase altilinker : altilinker.jar
cp $(ALTI_HOME)/bin/altilinker.jar $(WORK_DIR)/bin/altilinker.jar
pkgcreat: altibase_env.mk
ifeq "$(ALTI_PKG_IB)" "yes"
ifeq "${BUILD_MODE_DIAG}" "DIAGNOSTIC"
$(INSTALL_BUILDER) build $(ALTI_PKG_IB_XML_NAME) --setvars altibase_target_os=${ALTI_CFG_OS} altibase_cfg_cpu_value=${ALTI_CFG_CPU} altibase_compile_bit=$(ALTI_CFG_BITTYPE) altibase_build_mode=$(BUILD_MODE) altibase_base_version=${PKG_VERSION_INFO} altibase_from_tagset_version=$(FROM_PKG_TAGSET_NAME) altibase_from_tag_version=$(FROM_PKG_TAG_NAME) altibase_tagset_version=$(PKG_TAGSET_NAME) altibase_tag_version=$(PKG_TAG_NAME) altibase_build_dir=$(WORK_DIR) altibase_revision_num=${PKG_REVISION_NUM} altibase_dist_type=$(BUILD_MODE_DIAG) altibase_major_version=$(PGM_MAJOR_VER) altibase_minor_version=$(PGM_MINOR_VER)
else
$(INSTALL_BUILDER) build $(ALTI_PKG_IB_XML_NAME) --setvars altibase_target_os=${ALTI_CFG_OS} altibase_cfg_cpu_value=${ALTI_CFG_CPU} altibase_compile_bit=$(ALTI_CFG_BITTYPE) altibase_build_mode=$(BUILD_MODE) altibase_base_version=${PKG_VERSION_INFO} altibase_from_tagset_version=$(FROM_PKG_TAGSET_NAME) altibase_from_tag_version=$(FROM_PKG_TAG_NAME) altibase_tagset_version=$(PKG_TAGSET_NAME) altibase_tag_version=$(PKG_TAG_NAME) altibase_build_dir=$(WORK_DIR) altibase_dist_type= altibase_major_version=$(PGM_MAJOR_VER) altibase_minor_version=$(PGM_MINOR_VER)
endif
$(RM) $(WORK_DIR);
else
ifeq "$(ALTI_PKG_IB)" "VALUE_PACK"
$(INSTALL_BUILDER) build $(ALTI_PKG_IB_XML_NAME_VP) --setvars valuepack_name=${VALUEPACK_NAME} valuepack_version=$(valuePack_VERSION)
else
-cd $(WORK_DIR) && tar cvf - * | gzip -c > ../$(ALTI_PKG_NAME).tgz
$(RM) $(WORK_DIR);
endif
endif
#TASK-6469
additional_files_checksum :
echo "======= CREATE CHECKSUM FILE =======" > /dev/null
$(CHECKSUM_MD5) $(CHECKSUM_FILE_NAME).run > $(CHECKSUM_FILE_NAME).run.md5
##############################
# User Command for Package
##############################
TAG_NAME_MSG="Please specify PKG_TAG_NAME (Alpha, Beta1, Beta2, Beta3, RC1, RC2, 0, 1, 2, ... )"
TAGSET_NAME_MSG="Please specify PKG_TAGSET_NAME"
pkg_server: altibase_env.mk manual
ifeq ($(PKG_TAGSET_NAME),)
@echo $(TAGSET_NAME_MSG)
else
ifeq ($(PKG_TAG_NAME),)
@echo $(TAG_NAME_MSG)
else
$(MAKE) -f Makefile pkgdist ALTI_PKG_TYPE="*" WORK_DIR=$(SERVER_DIST_DIR)
$(MAKE) -f Makefile pkgcreat ALTI_PKG_TYPE="*" ALTI_PKG_NAME="$(RELEASE_SERVER_DIST_NAME)" WORK_DIR=$(SERVER_DIST_DIR)
endif
endif
pkg_client: altibase_env.mk manual
ifeq ($(PKG_TAGSET_NAME),)
@echo $(TAGSET_NAME_MSG)
else
ifeq ($(PKG_TAG_NAME),)
@echo $(TAG_NAME_MSG)
else
$(MAKE) -f Makefile pkgdist ALTI_PKG_TYPE="CLIENT" WORK_DIR=$(CLIENT_DIST_DIR)
$(MAKE) -f Makefile pkgcreat ALTI_PKG_TYPE="CLIENT" ALTI_PKG_NAME="$(RELEASE_CLIENT_DIST_NAME)" WORK_DIR=$(CLIENT_DIST_DIR)
endif
endif
pkg_server_patch: altibase_env.mk manual
ifeq ($(PKG_TAGSET_NAME),)
@echo $(TAGSET_NAME_MSG)
else
ifeq ($(PKG_TAG_NAME),)
@echo $(TAG_NAME_MSG)
else
$(MAKE) -f Makefile pkgdist_patch ALTI_PKG_TYPE="*" WORK_DIR=$(SERVER_DIST_DIR_PATCH) ALTI_CFG_EDITION=$(ALTI_CFG_EDITION)
$(MAKE) -f Makefile pkgcreat ALTI_PKG_TYPE="*" ALTI_PKG_NAME="$(RELEASE_SERVER_DIST_NAME_PATCH)" WORK_DIR=$(SERVER_DIST_DIR_PATCH)
endif
endif
pkg_client_patch: altibase_env.mk manual
ifeq ($(PKG_TAGSET_NAME),)
@echo $(TAGSET_NAME_MSG)
else
ifeq ($(PKG_TAG_NAME),)
@echo $(TAG_NAME_MSG)
else
$(MAKE) -f Makefile pkgdist_patch ALTI_PKG_TYPE="CLIENT" WORK_DIR=$(CLIENT_DIST_DIR_PATCH)
$(MAKE) -f Makefile pkgcreat ALTI_PKG_TYPE="CLIENT" ALTI_PKG_NAME="$(RELEASE_CLIENT_DIST_NAME_PATCH)" WORK_DIR=$(CLIENT_DIST_DIR_PATCH)
endif
endif
pkg_server_tar: altibase_env.mk manual
ifeq ($(PKG_TAGSET_NAME),)
@echo $(TAGSET_NAME_MSG)
else
ifeq ($(PKG_TAG_NAME),)
@echo $(TAG_NAME_MSG)
else
$(MAKE) -f Makefile pkgdist_patch ALTI_PKG_TYPE="*" WORK_DIR=$(SERVER_DIST_DIR_PATCH) ALTI_CFG_EDITION=$(ALTI_CFG_EDITION)
$(MAKE) additional_files_tar WORK_DIR=$(SERVER_DIST_DIR_PATCH)
$(MAKE) -f Makefile pkgcreat ALTI_PKG_TYPE="*" ALTI_PKG_NAME="$(TAR_SERVER_DIST_NAME)" WORK_DIR=$(SERVER_DIST_DIR_PATCH)
echo "======= CREATE CHECKSUM FILE =======" > /dev/null
$(CHECKSUM_MD5) $(TAR_SERVER_DIST_NAME)* > $(TAR_SERVER_DIST_NAME).tgz.md5
endif
endif
unoff_pkg_server: altibase_env.mk manual
$(MAKE) -f Makefile pkgdist ALTI_PKG_TYPE="*" WORK_DIR=$(SERVER_DIST_DIR) PKG_TAGSET_NAME=test PKG_TAG_NAME=test
$(MAKE) additional_files_jdbc WORK_DIR=$(SERVER_DIST_DIR)
$(MAKE) additional_files_altilinker WORK_DIR=$(SERVER_DIST_DIR)
$(MAKE) -f Makefile pkgcreat ALTI_PKG_TYPE="*" ALTI_PKG_NAME="$(UNOFFICIAL_SERVER_DIST_NAME)" WORK_DIR=$(SERVER_DIST_DIR)
unoff_pkg_client: altibase_env.mk manual
$(MAKE) -f Makefile pkgdist ALTI_PKG_TYPE="CLIENT" WORK_DIR=$(CLIENT_DIST_DIR)
$(MAKE) additional_files_jdbc WORK_DIR=$(CLIENT_DIST_DIR)
$(MAKE) -f Makefile pkgcreat ALTI_PKG_TYPE="CLIENT" ALTI_PKG_NAME="$(UNOFFICIAL_CLIENT_DIST_NAME)" WORK_DIR=$(CLIENT_DIST_DIR)
diag_pkg_server_ib:
$(MAKE) pkg_server_patch ALTI_PKG_IB=yes ALTI_PKG_IB_XML_NAME=serverPatchInstall.xml BUILD_MODE_DIAG=DIAGNOSTIC PKG_TAGSET_NAME=$(PGM_TAGSET_VER) PKG_TAG_NAME=$(PGM_TAG_VER)
diag_pkg_client_ib:
$(MAKE) pkg_client_patch ALTI_PKG_IB=yes ALTI_PKG_IB_XML_NAME=clientPatchInstall.xml BUILD_MODE_DIAG=DIAGNOSTIC PKG_TAGSET_NAME=$(PGM_TAGSET_VER) PKG_TAG_NAME=$(PGM_TAG_VER)
pkg_server_ib:
$(MAKE) pkg_server ALTI_PKG_IB=yes ALTI_PKG_IB_XML_NAME=serverInstall.xml
pkg_client_ib:
$(MAKE) pkg_client ALTI_PKG_IB=yes ALTI_PKG_IB_XML_NAME=clientInstall.xml
pkg_server_patch_ib:
$(MAKE) pkg_server_patch ALTI_PKG_IB=yes ALTI_PKG_IB_XML_NAME=serverPatchInstall.xml
$(MAKE) -f Makefile additional_files_checksum CHECKSUM_FILE_NAME="$(OFFICIAL_SERVER_DIST_NAME)"
pkg_client_patch_ib:
$(MAKE) pkg_client_patch ALTI_PKG_IB=yes ALTI_PKG_IB_XML_NAME=clientPatchInstall.xml
$(MAKE) -f Makefile additional_files_checksum CHECKSUM_FILE_NAME="$(OFFICIAL_CLIENT_DIST_NAME)"
pkg_server_community_edition_ib:
$(MAKE) pkg_server_patch ALTI_PKG_IB=yes ALTI_CFG_EDITION=COMMUNITY ALTI_PKG_IB_XML_NAME=serverCommunityEditionInstall.xml
$(MAKE) -f Makefile additional_files_checksum CHECKSUM_FILE_NAME="$(COMMUNITY_SERVER_DIST_NAME)"
pkg_server_open_edition_ib:
$(MAKE) pkg_server_patch ALTI_PKG_IB=yes ALTI_CFG_EDITION=OPEN ALTI_PKG_IB_XML_NAME=serverOpenEditionInstall.xml
$(MAKE) -f Makefile additional_files_checksum CHECKSUM_FILE_NAME="$(OPEN_SERVER_DIST_NAME)"
pkg_valuepack: altibase_env.mk
ifeq ($(valuePack_VERSION),)
@echo "Please specify valuePack_VERSION"
else
$(MAKE) -f Makefile pkgcreat ALTI_PKG_IB="VALUE_PACK"
endif
dist_server: altibase_env.mk manual
$(MAKE) -f Makefile pkgdist ALTI_PKG_TYPE="*" WORK_DIR=$(SERVER_DIST_DIR)
dist_client: altibase_env.mk manual
$(MAKE) -f Makefile pkgdist ALTI_PKG_TYPE="CLIENT" WORK_DIR=$(CLIENT_DIST_DIR)
dist_server_patch: altibase_env.mk manual
$(MAKE) -f Makefile pkgdist_patch ALTI_PKG_TYPE="*" WORK_DIR=$(SERVER_DIST_DIR_PATCH)
dist_client_patch: altibase_env.mk manual
$(MAKE) -f Makefile pkgdist_patch ALTI_PKG_TYPE="CLIENT" WORK_DIR=$(CLIENT_DIST_DIR_PATCH)
altibase_env.mk:
$(MAKE) -s -C install all
###################################################################
#
# TAGS section
#
###################################################################
SRC_DIRS=src/core src/pd src/id src/mt src/qp src/sd src/st src/dk src/cm src/mm src/rp src/sm src/ul ut
tags:
-$(RM) TAGS
for i in '$(SRC_DIRS)'; do find $$i -name "*.c" -o -name "*.cpp" -o -name "*.java" -o -name "*.h" -o -name "*.i" | grep -v win32 | xargs etags --append; done
ctags:
ctags -R --language-force=C++ --exclude='\.svn' $(DIRS)
for i in $(DIRS); do (rm -f $$i/tags; ln -s `pwd`/tags $$i/tags; ) done
###################################################################
#
# ETC / DEBUG section
#