-
Notifications
You must be signed in to change notification settings - Fork 94
/
Makefile
1257 lines (1140 loc) · 44.5 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
ifneq ($(V),1)
.SILENT:
endif
.PHONY: all clean realclean wipeclean distclean emptyoutput prepinstall actualinstall install copyonlyinstall uninstall troubleshoot outputdirs bootstrap deps ecere ecerecom ecerevanilla ecerestatic ear compiler prepbinaries epj2make libec2 bgen ide documentor eda prepcodeguard codeguard fixprecompile cleantarget pots installer regenbootstrap updatebootstrap update_ecere update_libec update_ecp update_ecc update_ecs ecereaudio
ROOT_ABSPATH := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
_CF_DIR = $(ROOT_ABSPATH)
include crossplatform.mk
include default.cf
.NOTPARALLEL: $(NOT_PARALLEL_TARGETS)
ifdef BSD_HOST
INSTALL_FLAGS :=
CPFLAGS := -pRf
else
INSTALL_FLAGS := -D
CPFLAGS := -dpRf
endif
XBOOT := $(if $(CROSS_TARGET),GCC_PREFIX= TARGET_PLATFORM=$(HOST_PLATFORM) PLATFORM=$(HOST_PLATFORM),)
LIBVER := .0.44
ifndef ECERE_AUDIO
ECERE_AUDIO := n
ifdef WINDOWS_TARGET
ECERE_AUDIO := y
endif
ifdef LINUX_TARGET
ifndef BSD_TARGET
ECERE_AUDIO := y
endif
endif
endif
ifndef DISABLE_EDA_SQLITE
EDASQLite := defined
endif
ifndef DISABLE_EDA_dBASE
EDAdBASE := defined
endif
ifndef DISABLE_EDA_STATIC
EDA_STATIC := defined
endif
ifndef DISABLE_ECERE_STATIC
ECERE_STATIC := defined
endif
ifdef WINDOWS_HOST
HOST_SOV := $(HOST_SO)
else
HOST_SOV := $(HOST_SO)$(LIBVER)
endif
ifdef WINDOWS_TARGET
SOV := $(SO)
ifndef DESTDIR
ifndef ECERE_SDK_INSTALL_DIR
ifeq ($(TARGET_ARCH),x86_64)
ifneq ($(wildcard $(SystemDrive)/Program\ Files ),)
export DESTDIR=$(SystemDrive)/Program Files/Ecere SDK
else
export DESTDIR=$(SystemDrive)/Ecere SDK
endif
else
ifdef ProgramFiles(x86)
export DESTDIR=${ProgramFiles(x86)}/Ecere SDK
else
ifdef ProgramFiles
export DESTDIR=$(ProgramFiles)/Ecere SDK
else
export DESTDIR=$(SystemDrive)/Ecere SDK
endif
endif
endif
else
export DESTDIR=$(ECERE_SDK_INSTALL_DIR)
endif # ECERE_SDK_INSTALL_DIR
endif # DESTDIR
export prefix=
ifndef DOCDIR
export DOCDIR=$(DESTDIR)$(prefix)/doc
endif
ifndef BINDIR
export BINDIR=$(DESTDIR)$(prefix)/bin
endif
ifndef LIBDIR
export LIBDIR=$(BINDIR)
endif
export DESTLIBDIR=$(LIBDIR)
ifndef SLIBDIR
export SLIBDIR=$(DESTDIR)$(prefix)/lib
endif
export DESTSLIBDIR=$(SLIBDIR)
ifndef SAMPLESDIR
export SAMPLESDIR=$(DESTDIR)$(prefix)/samples
endif
ifndef EXTRASDIR
export EXTRASDIR=$(DESTDIR)$(prefix)/extras
endif
else # WINDOWS_TARGET
ifdef OSX_TARGET
# TODO: OSX soname
SOV := $(SO)
else
SOV := $(SO)$(LIBVER)
endif
ifndef DESTDIR
export DESTDIR=
endif
ifndef prefix
export prefix=/usr
endif
ifndef DOCDIR
export DOCDIR=$(DESTDIR)$(prefix)/share/ecere/doc
endif
ifndef MANDIR
export MANDIR=$(DESTDIR)$(prefix)/share/man
endif
ifndef BINDIR
export BINDIR=$(DESTDIR)$(prefix)/bin
endif
ifdef LIBDIR
export PREFIXLIBDIR=$(LIBDIR)
else
export PREFIXLIBDIR=$(prefix)/lib/$(TARGET_ARCH)
ifeq ($(wildcard $(prefix)/lib/$(TARGET_ARCH)),)
export PREFIXLIBDIR=$(prefix)/lib$(LIB32_SFX)
ifeq ($(TARGET_TRIPLE),i386-linux-gnu)
ifneq ($(wildcard $(prefix)/lib32),)
export PREFIXLIBDIR=$(prefix)/lib32
endif
endif
endif
endif
export CPPFLAGS
CPPFLAGS += -DDEB_HOST_MULTIARCH=\"$(call escspace,$(PREFIXLIBDIR))\"
DESTLIBDIR := $(DESTDIR)$(PREFIXLIBDIR)
ifdef SLIBDIR
DESTSLIBDIR := $(DESTDIR)$(SLIBDIR)
else
DESTSLIBDIR := $(DESTLIBDIR)
endif
ifndef SAMPLESDIR
export SAMPLESDIR=$(DESTDIR)$(prefix)/share/ecere/samples
endif
ifndef EXTRASDIR
export EXTRASDIR=$(DESTDIR)$(prefix)/share/ecere/extras
endif
endif
OBJDIR := obj$(OBJALT)/
OBJBINDIR := $(OBJDIR)$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/bin/
OBJLIBDIR := $(OBJDIR)$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/lib/
XOBJDIR := obj$(OBJALT)/
XOBJBINDIR := $(OBJDIR)$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/bin/
XOBJLIBDIR := $(OBJDIR)$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/lib/
all: prepbinaries bgen
ifndef ECERE_PYTHON_PACKAGE
all: epj2make ide documentor
endif
all: eda codeguard ecereaudio
@$(call echo,The Ecere SDK$(if $(CROSS_BIT32), (32-bit),) is fully built.)
include Makefile.bindings
.PHONY: all32
all32:
ifeq ($(HOST_ARCH),x86_64)
+$(_MAKE) ARCH=x32 all
else
$(error bad use: host must be 64-bit for 'all32' target to be valid)
endif
outputdirs:
$(call mkdir,$(OBJDIR))
$(call mkdir,$(OBJBINDIR))
$(call mkdir,$(OBJLIBDIR))
ifdef CROSS_TARGET
$(call mkdir,$(XOBJDIR))
$(call mkdir,$(XOBJBINDIR))
$(call mkdir,$(XOBJLIBDIR))
endif
bootstrap: outputdirs
ifdef CI
@$(call echo,$(CC))
@$(CC) --version
endif
+cd compiler && $(_MAKE) $(XBOOT) bootstrap
deps:
ifdef CROSS_TARGET
# ifndef LINUX_HOST
@$(call echo,Building dependencies (host)...)
+cd deps && $(_MAKE) $(XBOOT)
# endif
endif
# ifndef LINUX_TARGET
@$(call echo,Building dependencies...)
+cd deps && $(_MAKE)
# endif
ecere: bootstrap deps
ifdef CROSS_TARGET
@$(call echo,Building 2nd stage ecere (host)...)
else
@$(call echo,Building 2nd stage ecere...)
endif
# TOCHECK: $(XBOOT) Even when not using cross-target?
+cd ecere && $(_MAKE) nores $(XBOOT)
+cd ear && $(_MAKE) nores $(XBOOT)
+cd ecere && $(_MAKE) cleaneceretarget
ifdef CROSS_TARGET
@$(call echo,Building 2nd stage ecere...)
endif
+cd ecere && $(_MAKE)
ecerecom: bootstrap
ifdef CROSS_TARGET
@$(call echo,Building eC Core Runtime (host)...)
+cd ecere && $(_MAKE) -f Makefile.ecereCOM $(XBOOT)
endif
@$(call echo,Building eC Core Runtime...)
+cd ecere && $(_MAKE) -f Makefile.ecereCOM
ecerevanilla: bootstrap
@$(call echo,Building Vanilla Ecere...)
+cd ecere && $(_MAKE) -f Makefile.vanilla
ecerestatic: bootstrap
@$(call echo,Building Static Ecere...)
+cd ecere && $(_MAKE) -f Makefile.static
ear: ecere ecerevanilla
@$(call echo,Building ear...)
+cd ear && cd cmd && $(_MAKE) cleantarget
+cd ear && $(_MAKE)
fixprecompile:
+cd compiler && $(_MAKE) fixprecompile
compiler: ecere ear
ifdef CROSS_TARGET
@$(call echo,Building 2nd stage compiler (host))
+cd compiler && $(_MAKE) $(XBOOT)
endif
@$(call echo,Building 2nd stage compiler)
+cd compiler && $(_MAKE)
prepbinaries: compiler libec2 ecerecom ecerestatic
@$(call echo,Enabling 2nd stage binaries...)
ifdef WINDOWS_TARGET
$(call cp,ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SOV),$(OBJBINDIR))
$(call cp,ecere/obj/ecereCOM.release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecereCOM$(SOV),$(OBJBINDIR))
$(call cp,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SOV),$(OBJBINDIR))
$(call cp,compiler/libec2/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec2$(SOV),$(OBJBINDIR))
endif
ifdef LINUX_TARGET
$(call cp,ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SOV),$(OBJLIBDIR))
$(call cp,ecere/obj/ecereCOM.release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecereCOM$(SOV),$(OBJLIBDIR))
$(call cp,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SOV),$(OBJLIBDIR))
$(call cp,compiler/libec2/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec2$(SOV),$(OBJLIBDIR))
ln -sf $(LP)ecere$(SOV) $(OBJLIBDIR)$(LP)ecere$(SO).0
ln -sf $(LP)ecereCOM$(SOV) $(OBJLIBDIR)$(LP)ecereCOM$(SO).0
ln -sf $(LP)ec$(SOV) $(OBJLIBDIR)$(LP)ec$(SO).0
ln -sf $(LP)ec2$(SOV) $(OBJLIBDIR)$(LP)ec2$(SO).0
ln -sf $(LP)ecere$(SOV) $(OBJLIBDIR)$(LP)ecere$(SO)
ln -sf $(LP)ecereCOM$(SOV) $(OBJLIBDIR)$(LP)ecereCOM$(SO)
ln -sf $(LP)ec$(SOV) $(OBJLIBDIR)$(LP)ec$(SO)
ln -sf $(LP)ec2$(SOV) $(OBJLIBDIR)$(LP)ec2$(SO)
endif
ifndef WINDOWS_TARGET
ifndef LINUX_TARGET
$(call cp,ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SO),$(OBJLIBDIR))
$(call cp,ecere/obj/ecereCOM.release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecereCOM$(SO),$(OBJLIBDIR))
$(call cp,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SO),$(OBJLIBDIR))
$(call cp,compiler/libec2/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec2$(SO),$(OBJLIBDIR))
endif
endif
$(call cp,ear/cmd/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ear$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,compiler/ecc/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecc$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,compiler/ecp/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecp$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,compiler/ecs/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecs$(B32_SFX)$(E),$(OBJBINDIR))
ifdef CROSS_TARGET
ifdef WINDOWS_HOST
$(call cp,ecere/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ecere$(HOST_SOV),$(XOBJBINDIR))
$(call cp,ecere/obj/ecereCOM.release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ecereCOM$(HOST_SOV),$(XOBJBINDIR))
$(call cp,compiler/libec/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ec$(HOST_SOV),$(XOBJBINDIR))
$(call cp,compiler/libec2/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ec2$(HOST_SOV),$(XOBJBINDIR))
endif
ifdef WINDOWS_HOST
$(call cp,ecere/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ecere$(HOST_SOV),$(XOBJLIBDIR))
$(call cp,ecere/obj/ecereCOM.release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ecereCOM$(HOST_SOV),$(XOBJLIBDIR))
$(call cp,compiler/libec/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ec$(HOST_SOV),$(XOBJLIBDIR))
$(call cp,compiler/libec2/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ec2$(HOST_SOV),$(XOBJLIBDIR))
ln -sf $(HOST_LP)ecere$(HOST_SOV) $(XOBJLIBDIR)$(LP)ecere$(HOST_SO).0
ln -sf $(HOST_LP)ecereCOM$(HOST_SOV) $(XOBJLIBDIR)$(LP)ecereCOM$(HOST_SO).0
ln -sf $(HOST_LP)ec$(HOST_SOV) $(XOBJLIBDIR)$(LP)ec$(HOST_SO).0
ln -sf $(HOST_LP)ec2$(HOST_SOV) $(XOBJLIBDIR)$(LP)ec2$(HOST_SO).0
ln -sf $(HOST_LP)ecere$(HOST_SOV) $(XOBJLIBDIR)$(LP)ecere$(HOST_SO)
ln -sf $(HOST_LP)ecereCOM$(HOST_SOV) $(XOBJLIBDIR)$(LP)ecereCOM$(HOST_SO)
ln -sf $(HOST_LP)ec$(HOST_SOV) $(XOBJLIBDIR)$(LP)ec$(HOST_SO)
ln -sf $(HOST_LP)ec2$(HOST_SOV) $(XOBJLIBDIR)$(LP)ec2$(HOST_SO)
endif
ifndef WINDOWS_HOST
ifndef LINUX_HOST
$(call cp,ecere/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ecere$(HOST_SO),$(XOBJLIBDIR))
$(call cp,ecere/obj/ecereCOM.release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ecereCOM$(HOST_SO),$(XOBJLIBDIR))
$(call cp,compiler/libec/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ec$(HOST_SO),$(XOBJLIBDIR))
$(call cp,compiler/libec2/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(HOST_LP)ec2$(HOST_SO),$(XOBJLIBDIR))
endif
endif
$(call cp,ear/cmd/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ear$(B32_SFX)$(HOST_E),$(XOBJBINDIR))
$(call cp,compiler/ecc/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecc$(B32_SFX)$(HOST_E),$(XOBJBINDIR))
$(call cp,compiler/ecp/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecp$(B32_SFX)$(HOST_E),$(XOBJBINDIR))
$(call cp,compiler/ecs/obj/release.$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecs$(B32_SFX)$(HOST_E),$(XOBJBINDIR))
endif
epj2make: prepbinaries
@$(call echo,Building epj2make...)
+cd epj2make && $(_MAKE)
libec2: compiler
ifdef CROSS_TARGET
@$(call echo,Building libec2 (host)...)
+cd compiler/libec2 && $(_MAKE) $(XBOOT)
endif
@$(call echo,Building libec2...)
+cd compiler/libec2 && $(_MAKE)
bgen: prepbinaries
@$(call echo,Building bgen...)
+cd bgen && $(_MAKE)
ecereaudio: prepbinaries
ifneq ($(ECERE_AUDIO),n)
@$(call echo,Building EcereAudio...)
+cd audio && $(_MAKE)
endif
ide: prepbinaries
@$(call echo,Building IDE...)
+cd ide && $(_MAKE)
documentor: prepbinaries
@$(call echo,Building Documentor...)
+cd documentor && $(_MAKE)
codeguard: prepcodeguard
ifdef CodeGuard
@$(call echo,Building CodeGuard client...)
+cd codeGuard && $(_MAKE)
endif
prepcodeguard: eda
ifdef CodeGuard
ifdef WINDOWS_TARGET
$(call cp,eda/libeda/obj/release.$(PLATFORM)/$(LP)EDA$(SO),$(OBJBINDIR))
endif
ifdef LINUX_TARGET
$(call cp,eda/libeda/obj/release.$(PLATFORM)/$(LP)EDA$(SOV),$(OBJLIBDIR))
ln -sf $(LP)EDA$(SOV) $(OBJLIBDIR)$(LP)EDA$(SO).0
ln -sf $(LP)EDA$(SOV) $(OBJLIBDIR)$(LP)EDA$(SO)
endif
ifndef WINDOWS_TARGET
ifndef LINUX_TARGET
$(call cp,eda/libeda/obj/release.$(PLATFORM)/$(LP)EDA$(SO),$(OBJLIBDIR))
endif
endif
endif
eda: prepbinaries
ifdef CROSS_TARGET
@$(call echo,Building EDA (host))
+cd eda && $(_MAKE) $(XBOOT)
endif
@$(call echo,Building EDA...)
+cd eda && $(_MAKE)
emptyoutput: outputdirs
$(call rm,$(OBJLIBDIR)libecereVanilla$(A))
ifdef ECERE_STATIC
$(call rm,$(OBJLIBDIR)libecereStatic$(A))
endif
$(call rm,$(SODESTDIR)$(LP)ecere$(SO))
$(call rm,$(SODESTDIR)$(LP)ecereCOM$(SO))
$(call rm,$(SODESTDIR)$(LP)ec$(SO))
$(call rm,$(SODESTDIR)$(LP)EDA$(SO))
ifdef EDA_STATIC
$(call rm,$(OBJLIBDIR)libEDAStatic$(A))
endif
ifdef EDAdBASE
$(call rm,$(SODESTDIR)$(LP)EDAdBASE$(SO))
endif
ifdef EDASQLite
$(call rm,$(SODESTDIR)$(LP)EDASQLite$(SO))
ifdef EDA_STATIC
$(call rm,$(OBJLIBDIR)libEDASQLiteStatic$(A))
endif
endif
ifdef EDASQLiteCipher
$(call rm,$(SODESTDIR)$(LP)EDASQLiteCipher$(SO))
endif
ifneq ($(ECERE_AUDIO),n)
$(call rm,$(SODESTDIR)$(LP)EcereAudio$(SO))
endif
ifdef LINUX_TARGET
$(call rm,$(SODESTDIR)$(LP)ecere$(SO).0)
$(call rm,$(SODESTDIR)$(LP)ecereCOM$(SO).0)
$(call rm,$(SODESTDIR)$(LP)ec$(SO).0)
$(call rm,$(SODESTDIR)$(LP)EDA$(SO).0)
ifdef EDAdBASE
$(call rm,$(SODESTDIR)$(LP)EDAdBASE$(SO).0)
endif
ifdef EDASQLite
$(call rm,$(SODESTDIR)$(LP)EDASQLite$(SO).0)
endif
ifdef EDASQLiteCipher
$(call rm,$(SODESTDIR)$(LP)EDASQLiteCipher$(SO).0)
endif
ifneq ($(ECERE_AUDIO),n)
$(call rm,$(SODESTDIR)$(LP)EcereAudio$(SO).0)
endif
$(call rm,$(SODESTDIR)$(LP)ecere$(SOV))
$(call rm,$(SODESTDIR)$(LP)ecereCOM$(SOV))
$(call rm,$(SODESTDIR)$(LP)ec$(SOV))
$(call rm,$(SODESTDIR)$(LP)ec2$(SOV))
$(call rm,$(SODESTDIR)$(LP)EDA$(SOV))
ifdef EDAdBASE
$(call rm,$(SODESTDIR)$(LP)EDAdBASE$(SOV))
endif
ifdef EDASQLite
$(call rm,$(SODESTDIR)$(LP)EDASQLite$(SOV))
endif
ifdef EDASQLiteCipher
$(call rm,$(SODESTDIR)$(LP)EDASQLiteCipher$(SOV))
endif
ifneq ($(ECERE_AUDIO),n)
$(call rm,$(SODESTDIR)$(LP)EcereAudio$(SOV))
endif
endif
$(call rm,$(OBJBINDIR)ear$(B32_SFX)$(E))
$(call rm,$(OBJBINDIR)ecc$(B32_SFX)$(E))
$(call rm,$(OBJBINDIR)ecp$(B32_SFX)$(E))
$(call rm,$(OBJBINDIR)ecs$(B32_SFX)$(E))
$(call rm,$(OBJBINDIR)epj2make$(B32_SFX)$(E))
$(call rm,$(OBJBINDIR)bgen$(B32_SFX)$(E))
$(call rm,$(OBJBINDIR)ecere-ide$(B32_SFX)$(E))
$(call rm,$(OBJBINDIR)documentor$(B32_SFX)$(E))
ifdef CodeGuard
$(call rm,$(OBJBINDIR)CodeGuard$(E))
endif
cleantarget:
+cd compiler && $(_MAKE) cleantarget
+cd documentor && $(_MAKE) cleantarget
+cd ear && $(_MAKE) cleantarget
+cd ecere && $(_MAKE) cleantarget
+cd eda && $(_MAKE) cleantarget
+cd epj2make && $(_MAKE) cleantarget
+cd compiler/libec2 && $(_MAKE) cleantarget
+cd bgen && $(_MAKE) cleantarget
+cd ide && $(_MAKE) cleantarget
+cd installer && $(_MAKE) cleantarget
ifneq ($(ECERE_AUDIO),n)
+cd audio && $(_MAKE) cleantarget
endif
pots: cleantarget
$(_MAKE) OUTPUT_POT=1
+cd installer && $(_MAKE) OUTPUT_POT=1 pots
ifdef WINDOWS_TARGET
installer:
$(_MAKE) prepinstall ARCH=
$(_MAKE) prepinstall ARCH=x32
@$(call echo,Building Ecere runtime for installer...)
+cd ecere && $(_MAKE) -f Makefile.installer ARCH=x32
@$(call echo,Building Installer for Windows...)
+cd installer && $(_MAKE) ARCH=x32
@$(call echo,The Ecere SDK Windows Installer is fully built.)
endif
clean: emptyoutput bindings_clean
# ifndef LINUX_TARGET
+cd deps && $(_MAKE) clean
# endif
+cd ecere && $(_MAKE) clean
+cd compiler && $(_MAKE) clean
+cd ear && $(_MAKE) clean
+cd epj2make && $(_MAKE) clean
+cd compiler/libec2 && $(_MAKE) clean
+cd bgen && $(_MAKE) clean
+cd ide && $(_MAKE) clean
+cd documentor && $(_MAKE) clean
ifneq ($(ECERE_AUDIO),n)
+cd audio && $(_MAKE) clean
endif
ifdef CodeGuard
+cd codeGuard && $(_MAKE) clean
endif
+cd eda && $(_MAKE) clean
@$(call echo,Done.)
realclean: bindings_realclean
# ifndef LINUX_TARGET
+cd deps && $(_MAKE) realclean
# endif
+cd ecere && $(_MAKE) realclean
+cd compiler && $(_MAKE) realclean
+cd ear && $(_MAKE) realclean
+cd epj2make && $(_MAKE) realclean
+cd compiler/libec2 && $(_MAKE) realclean
+cd bgen && $(_MAKE) realclean
+cd ide && $(_MAKE) realclean
+cd documentor && $(_MAKE) realclean
ifneq ($(ECERE_AUDIO),n)
+cd audio && $(_MAKE) realclean
endif
ifdef CodeGuard
+cd codeGuard && $(_MAKE) realclean
endif
+cd eda && $(_MAKE) realclean
$(call rmr,obj/$(PLATFORM)/)
@$(call echo,Done.)
wipeclean: bindings_wipeclean
$(call rmr,obj/)
+cd deps && $(_MAKE) wipeclean
+cd ecere && $(_MAKE) wipeclean
+cd compiler && $(_MAKE) wipeclean
+cd ear && $(_MAKE) wipeclean
+cd epj2make && $(_MAKE) wipeclean
+cd compiler/libec2 && $(_MAKE) wipeclean
+cd bgen && $(_MAKE) wipeclean
+cd ide && $(_MAKE) wipeclean
+cd documentor && $(_MAKE) wipeclean
+cd audio && $(_MAKE) wipeclean
+cd eda && $(_MAKE) wipeclean
@$(call echo,Done.)
distclean: bindings_distclean
$(_MAKE) -f Cleanfile distclean distclean_all_subdirs
@$(call echo,Done.)
DOC = doc
$(MAKEFILE_LIST): ;
$(SOURCES): ;
$(RESOURCES): ;
BINARIES = \
ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SOV) \
ecere/obj/ecereCOM.release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecereCOM$(SOV) \
ecere/obj/vanilla.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libecereVanilla$(A) \
compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SOV) \
compiler/libec2/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec2$(SOV) \
compiler/ecp/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecp$(B32_SFX)$(E) \
compiler/ecc/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecc$(B32_SFX)$(E) \
compiler/ecs/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecs$(B32_SFX)$(E) \
ear/cmd/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ear$(B32_SFX)$(E) \
bgen/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/bgen$(B32_SFX)$(E) \
eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SOV)
ifdef ECERE_STATIC
BINARIES += \
ecere/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libecereStatic$(A)
endif
ifdef EDA_STATIC
BINARIES += \
eda/libeda/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libEDAStatic$(A)
endif
ifdef EDAdBASE
BINARIES += eda/drivers/dbase/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDAdBASE$(SOV)
endif
ifdef EDASQLite
BINARIES += \
eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SOV)
ifdef EDA_STATIC
BINARIES += \
eda/drivers/sqlite/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libEDASQLiteStatic$(A)
endif
endif
ifndef ECERE_PYTHON_PACKAGE
BINARIES += \
epj2make/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/epj2make$(B32_SFX)$(E) \
documentor/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/documentor$(B32_SFX)$(E) \
ide/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecere-ide$(B32_SFX)$(E)
endif
ifneq ($(ECERE_AUDIO),n)
BINARIES += audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SOV)
endif
ifdef CodeGuard
BINARIES += codeGuard/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/CodeGuard$(E)
endif
ifdef EDASQLiteCipher
BINARIES += eda/drivers/sqliteCipher/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLiteCipher$(SOV)
endif
OBJPYDIR := $(OBJDIR)$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/py
.PHONY: py_prepinstall
py_prepinstall: prepinstall
$(call mkdir,$(call path,$(OBJPYDIR)/))
$(call cp,$(OBJLIBDIR)$(LP)ecereCOM$(SOV),$(OBJPYDIR)/$(LP)ecereCOM$(SO).0)
$(call cp,$(OBJLIBDIR)$(LP)ecere$(SOV),$(OBJPYDIR)/$(LP)ecere$(SO).0)
$(call cp,$(OBJLIBDIR)$(LP)EDA$(SOV),$(OBJPYDIR)/$(LP)EDA$(SO).0)
$(call cp,$(OBJLIBDIR)$(LP)ec$(SOV),$(OBJPYDIR)/$(LP)ec$(SO).0)
$(call cp,$(OBJLIBDIR)$(LP)ec2$(SOV),$(OBJPYDIR)/$(LP)ec2$(SO).0)
ifneq ($(ECERE_AUDIO),n)
$(call cp,$(OBJLIBDIR)$(LP)EcereAudio$(SOV),$(OBJPYDIR)/$(LP)EcereAudio$(SO).0)
endif
# Making sure everything is in $(OBJBINDIR) and $(OBJLIBDIR)
# Shared Libraries (in $(OBJBINDIR) on Windows and $(OBJLIBDIR) otherwise)
# Symlinks for libs on Linux
# Binaries (always in $(OBJBINDIR)) and Static Libraries (always in $(OBJLIBDIR))
prepinstall: $(DOC) $(BINARIES) outputdirs
ifdef WINDOWS_TARGET
$(call cp,ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SO),$(OBJBINDIR))
$(call cp,ecere/obj/ecereCOM.release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecereCOM$(SO),$(OBJBINDIR))
$(call cp,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SO),$(OBJBINDIR))
$(call cp,compiler/libec2/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec2$(SO),$(OBJBINDIR))
$(call cp,eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SO),$(OBJBINDIR))
ifdef EDAdBASE
$(call cp,eda/drivers/dbase/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDAdBASE$(SO),$(OBJBINDIR))
endif
ifdef EDASQLite
$(call cp,eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SO),$(OBJBINDIR))
endif
ifneq ($(ECERE_AUDIO),n)
$(call cp,audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SO),$(OBJBINDIR))
endif
ifdef EDASQLiteCipher
$(call cp,eda/drivers/sqliteCipher/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLiteCipher$(SO),$(OBJBINDIR))
endif
endif
ifdef LINUX_TARGET
$(call cp,ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SOV),$(OBJLIBDIR))
$(call cp,ecere/obj/ecereCOM.release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecereCOM$(SOV),$(OBJLIBDIR))
$(call cp,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SOV),$(OBJLIBDIR))
$(call cp,compiler/libec2/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec2$(SOV),$(OBJLIBDIR))
$(call cp,eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SOV),$(OBJLIBDIR))
ifdef EDA_STATIC
$(call cp,eda/libeda/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libEDAStatic$(A),$(OBJLIBDIR))
endif
ifdef EDAdBASE
$(call cp,eda/drivers/dbase/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDAdBASE$(SOV),$(OBJLIBDIR))
endif
ifdef EDASQLite
$(call cp,eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SOV),$(OBJLIBDIR))
ifdef EDA_STATIC
$(call cp,eda/drivers/sqlite/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libEDASQLiteStatic$(A),$(OBJLIBDIR))
endif
endif
ifneq ($(ECERE_AUDIO),n)
$(call cp,audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SOV),$(OBJLIBDIR))
endif
ifdef EDASQLiteCipher
$(call cp,eda/drivers/sqliteCipher/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLiteCipher$(SOV),$(OBJLIBDIR))
endif
ln -sf $(LP)ecere$(SOV) $(OBJLIBDIR)$(LP)ecere$(SO).0
ln -sf $(LP)ecereCOM$(SOV) $(OBJLIBDIR)$(LP)ecereCOM$(SO).0
ln -sf $(LP)ec$(SOV) $(OBJLIBDIR)$(LP)ec$(SO).0
ln -sf $(LP)ec2$(SOV) $(OBJLIBDIR)$(LP)ec2$(SO).0
ln -sf $(LP)EDA$(SOV) $(OBJLIBDIR)$(LP)EDA$(SO).0
ifdef EDAdBASE
ln -sf $(LP)EDAdBASE$(SOV) $(OBJLIBDIR)$(LP)EDAdBASE$(SO).0
endif
ifdef EDASQLite
ln -sf $(LP)EDASQLite$(SOV) $(OBJLIBDIR)$(LP)EDASQLite$(SO).0
endif
ifdef EDASQLiteCipher
ln -sf $(LP)EDASQLiteCipher$(SOV) $(OBJLIBDIR)$(LP)EDASQLiteCipher$(SO).0
endif
ifneq ($(ECERE_AUDIO),n)
ln -sf $(LP)EcereAudio$(SOV) $(OBJLIBDIR)$(LP)EcereAudio$(SO).0
endif
ln -sf $(LP)ecere$(SOV) $(OBJLIBDIR)$(LP)ecere$(SO)
ln -sf $(LP)ecereCOM$(SOV) $(OBJLIBDIR)$(LP)ecereCOM$(SO)
ln -sf $(LP)ec$(SOV) $(OBJLIBDIR)$(LP)ec$(SO)
ln -sf $(LP)ec2$(SOV) $(OBJLIBDIR)$(LP)ec2$(SO)
ln -sf $(LP)EDA$(SOV) $(OBJLIBDIR)$(LP)EDA$(SO)
ifdef EDAdBASE
ln -sf $(LP)EDAdBASE$(SOV) $(OBJLIBDIR)$(LP)EDAdBASE$(SO)
endif
ifdef EDASQLite
ln -sf $(LP)EDASQLite$(SOV) $(OBJLIBDIR)$(LP)EDASQLite$(SO)
endif
ifdef EDASQLiteCipher
ln -sf $(LP)EDASQLiteCipher$(SOV) $(OBJLIBDIR)$(LP)EDASQLiteCipher$(SO)
endif
ln -sf $(LP)EcereAudio$(SOV) $(OBJLIBDIR)$(LP)EcereAudio$(SO)
endif
ifndef WINDOWS_TARGET
ifndef LINUX_TARGET
$(call cp,ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SO),$(OBJLIBDIR))
$(call cp,ecere/obj/ecereCOM.release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecereCOM$(SO),$(OBJLIBDIR))
$(call cp,compiler/libec/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec$(SO),$(OBJLIBDIR))
$(call cp,compiler/libec2/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ec2$(SO),$(OBJLIBDIR))
$(call cp,eda/libeda/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDA$(SO),$(OBJLIBDIR))
ifdef EDA_STATIC
$(call cp,eda/libeda/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libEDAStatic$(A),$(OBJLIBDIR))
endif
ifdef EDAdBASE
$(call cp,eda/drivers/dbase/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDAdBASE$(SO),$(OBJLIBDIR))
endif
ifdef EDASQLite
$(call cp,eda/drivers/sqlite/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLite$(SO),$(OBJLIBDIR))
ifdef EDA_STATIC
$(call cp,eda/drivers/sqlite/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libEDASQLiteStatic$(A),$(OBJLIBDIR))
endif
endif
ifneq ($(ECERE_AUDIO),n)
$(call cp,audio/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EcereAudio$(SO),$(OBJLIBDIR))
endif
ifdef EDASQLiteCipher
$(call cp,eda/drivers/sqliteCipher/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)EDASQLiteCipher$(SO),$(OBJLIBDIR))
endif
endif
endif
$(call cp,ear/cmd/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ear$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,compiler/ecc/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecc$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,compiler/ecp/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecp$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,compiler/ecs/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecs$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,bgen/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/bgen$(B32_SFX)$(E),$(OBJBINDIR))
ifndef ECERE_PYTHON_PACKAGE
$(call cp,ide/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/ecere-ide$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,epj2make/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/epj2make$(B32_SFX)$(E),$(OBJBINDIR))
$(call cp,documentor/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/documentor$(B32_SFX)$(E),$(OBJBINDIR))
endif
ifdef CodeGuard
$(call cp,codeGuard/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/CodeGuard$(E),$(OBJBINDIR))
endif
$(call cp,ecere/obj/vanilla.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libecereVanilla$(A),$(OBJLIBDIR))
ifdef ECERE_STATIC
$(call cp,ecere/obj/static.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/libecereStatic$(A),$(OBJLIBDIR))
endif
.PHONY: prepinstall32
prepinstall32:
ifeq ($(HOST_ARCH),x86_64)
+$(_MAKE) ARCH=x32 prepinstall
else
$(error bad use: host must be 64-bit for 'prepinstall32' target to be valid)
endif
#TODO: Samples?
install: prepinstall actualinstall
@$(call echo,The Ecere SDK$(if $(CROSS_BIT32), (32-bit),) has been installed.)
.PHONY: install32
install32:
ifeq ($(HOST_ARCH),x86_64)
+$(_MAKE) ARCH=x32 SKIP_ADDITIONAL_FILES=x install
else
$(error bad use: host must be 64-bit for 'all32' target to be valid)
endif
copyonlyinstall: actualinstall
@$(call echo,The Ecere SDK has been installed. copyonlyinstall.)
actualinstall:
ifdef WINDOWS_TARGET
$(call mkdir,$(call path,$(BINDIR)/))
$(call mkdir,$(call path,$(DESTSLIBDIR)/))
$(call mkdir,$(call path,$(DOCDIR)/))
$(call cp,$(OBJBINDIR)$(LP)ecere$(SO),"$(DESTLIBDIR)/")
$(call cp,$(OBJBINDIR)$(LP)ecereCOM$(SO),"$(DESTLIBDIR)/")
$(call cp,$(OBJBINDIR)$(LP)ec$(SO),"$(DESTLIBDIR)/")
$(call cp,$(OBJBINDIR)$(LP)ec2$(SO),"$(DESTLIBDIR)/")
$(call cp,$(OBJBINDIR)$(LP)EDA$(SO),"$(DESTLIBDIR)/")
ifdef EDA_STATIC
$(call cp,$(OBJLIBDIR)libEDAStatic$(A),"$(DESTSLIBDIR)/")
endif
ifdef EDAdBASE
$(call cp,$(OBJBINDIR)$(LP)EDAdBASE$(SO),"$(DESTLIBDIR)/")
endif
ifdef EDASQLite
$(call cp,$(OBJBINDIR)$(LP)EDASQLite$(SO),"$(DESTLIBDIR)/")
ifdef EDA_STATIC
$(call cp,$(OBJLIBDIR)libEDASQLiteStatic$(A),"$(DESTSLIBDIR)/")
endif
endif
ifdef EDASQLiteCipher
$(call cp,$(OBJBINDIR)$(LP)EDASQLiteCipher$(SO),"$(DESTLIBDIR)/")
endif
ifneq ($(ECERE_AUDIO),n)
$(call cp,$(OBJBINDIR)$(LP)EcereAudio$(SO),"$(DESTLIBDIR)/")
endif
$(call cp,$(OBJBINDIR)ecere-ide$(B32_SFX)$(E),"$(BINDIR)/ide$(B32_SFX)$(E)")
$(call cp,$(OBJBINDIR)ecere-ide$(B32_SFX)$(E),"$(BINDIR)/")
$(call cp,$(OBJBINDIR)ear$(B32_SFX)$(E),"$(BINDIR)/")
$(call cp,$(OBJBINDIR)ecc$(B32_SFX)$(E),"$(BINDIR)/")
$(call cp,$(OBJBINDIR)ecp$(B32_SFX)$(E),"$(BINDIR)/")
$(call cp,$(OBJBINDIR)ecs$(B32_SFX)$(E),"$(BINDIR)/")
$(call cp,$(OBJBINDIR)epj2make$(B32_SFX)$(E),"$(BINDIR)/")
$(call cp,$(OBJBINDIR)bgen$(B32_SFX)$(E),"$(BINDIR)/")
$(call cp,$(OBJBINDIR)documentor$(B32_SFX)$(E),"$(BINDIR)/")
ifdef CodeGuard
$(call cp,$(OBJBINDIR)CodeGuard$(E),"$(BINDIR)/")
endif
$(call cp,$(OBJLIBDIR)libecereVanilla$(A),"$(DESTSLIBDIR)/")
ifdef ECERE_STATIC
$(call cp,$(OBJLIBDIR)libecereStatic$(A),"$(DESTSLIBDIR)/")
endif
$(call cp,doc/tao.pdf,"$(DOCDIR)/Ecere Tao of Programming [work in progress].pdf") || echo "The Ecere Tao of Programming is available at http://ecere.com/tao.pdf"
$(call cpr,$(DOC)/ecereCOM,"$(DOCDIR)/ecereCOM")
$(call cpr,$(DOC)/ecere,"$(DOCDIR)/ecere")
$(call cpr,$(DOC)/EDA,"$(DOCDIR)/EDA")
endif
ifdef OSX_TARGET
install $(OBJLIBDIR)$(LP)ecere$(SO) $(DESTLIBDIR)/
install $(OBJLIBDIR)$(LP)ecereCOM$(SO) $(DESTLIBDIR)/
install $(OBJLIBDIR)$(LP)ec$(SO) $(DESTLIBDIR)/
install $(OBJLIBDIR)$(LP)ec2$(SO) $(DESTLIBDIR)/
install $(OBJLIBDIR)$(LP)EDA$(SO) $(DESTLIBDIR)/
ifdef EDA_STATIC
install $(OBJLIBDIR)libEDAStatic$(A) $(DESTSLIBDIR)/
endif
ifdef EDAdBASE
install $(OBJLIBDIR)$(LP)EDAdBASE$(SO) $(DESTLIBDIR)/
endif
ifdef EDASQLite
install $(OBJLIBDIR)$(LP)EDASQLite$(SO) $(DESTLIBDIR)/
ifdef EDA_STATIC
install $(OBJLIBDIR)libEDASQLiteStatic$(A) $(DESTSLIBDIR)/
endif
endif
ifdef EDASQLiteCipher
install $(OBJLIBDIR)$(LP)EDASQLiteCipher$(SO) $(DESTLIBDIR)/
endif
ifneq ($(ECERE_AUDIO),n)
install $(OBJLIBDIR)$(LP)EcereAudio$(SO) $(DESTLIBDIR)/
endif
install $(OBJBINDIR)ecere-ide$(B32_SFX)$(E) $(BINDIR)/
install $(OBJBINDIR)ear$(B32_SFX)$(E) $(BINDIR)/
install $(OBJBINDIR)ecc$(B32_SFX)$(E) $(BINDIR)/
install $(OBJBINDIR)ecp$(B32_SFX)$(E) $(BINDIR)/
install $(OBJBINDIR)ecs$(B32_SFX)$(E) $(BINDIR)/
install $(OBJBINDIR)epj2make$(B32_SFX)$(E) $(BINDIR)/
install $(OBJBINDIR)bgen$(B32_SFX)$(E) $(BINDIR)/
install $(OBJBINDIR)documentor$(B32_SFX)$(E) $(BINDIR)/
ifdef CodeGuard
install $(OBJBINDIR)CodeGuard$(E) $(BINDIR)/
endif
install $(OBJLIBDIR)libecereVanilla$(A) $(DESTSLIBDIR)/
ifdef ECERE_STATIC
install $(OBJLIBDIR)libecereStatic$(A) $(DESTSLIBDIR)/
endif
install -d $(DOCDIR)/
install doc/tao.pdf $(DOCDIR)/"Ecere Tao of Programming [work in progress].pdf" >/dev/null 2>&1 || echo "The Ecere Tao of Programming is available at http://ecere.com/tao.pdf"
$(call cpr,$(DOC)/ecereCOM,"$(DOCDIR)/ecereCOM")
$(call cpr,$(DOC)/ecere,"$(DOCDIR)/ecere")
$(call cpr,$(DOC)/EDA,"$(DOCDIR)/EDA")
mkdir -p $(MANDIR)/man1
$(call cpr,share/man/man1,$(MANDIR)/man1)
mkdir -p $(SAMPLESDIR)
$(call cpr,samples,$(SAMPLESDIR))
find $(SAMPLESDIR) -type d -exec chmod 777 {} \;
find $(DOCDIR) -type d -exec chmod 755 {} \;
find $(DOCDIR) -type f -exec chmod 644 {} \;
mkdir -p $(EXTRASDIR)
$(call cpr,extras,$(EXTRASDIR))
endif
ifndef OSX_TARGET
ifndef WINDOWS_TARGET
ifdef LINUX_TARGET
mkdir -p $(DESTLIBDIR)/ec
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)ecere$(SOV) $(DESTLIBDIR)/$(LP)ecere$(SOV)
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)ecereCOM$(SOV) $(DESTLIBDIR)/$(LP)ecereCOM$(SOV)
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)ec$(SOV) $(DESTLIBDIR)/ec/$(LP)ec$(SOV)
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)ec2$(SOV) $(DESTLIBDIR)/ec/$(LP)ec2$(SOV)
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)EDA$(SOV) $(DESTLIBDIR)/ec/$(LP)EDA$(SOV)
ifdef EDA_STATIC
install $(INSTALL_FLAGS) $(OBJLIBDIR)libEDAStatic$(A) $(DESTSLIBDIR)/ec/libEDAStatic$(A)
endif
ifdef EDAdBASE
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)EDAdBASE$(SOV) $(DESTLIBDIR)/ec/$(LP)EDAdBASE$(SOV)
endif
ifdef EDASQLite
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)EDASQLite$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLite$(SOV)
ifdef EDA_STATIC
install $(INSTALL_FLAGS) $(OBJLIBDIR)libEDASQLiteStatic$(A) $(DESTSLIBDIR)/ec/libEDASQLiteStatic$(A)
endif
endif
ifdef EDASQLiteCipher
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)EDASQLiteCipher$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SOV)
endif
ifneq ($(ECERE_AUDIO),n)
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)EcereAudio$(SO) $(DESTLIBDIR)/ec/$(LP)EcereAudio$(SOV)
endif
ln -sf $(LP)ecere$(SOV) $(DESTLIBDIR)/$(LP)ecere$(SO).0
ln -sf $(LP)ecereCOM$(SOV) $(DESTLIBDIR)/$(LP)ecereCOM$(SO).0
ln -sf $(LP)ec$(SOV) $(DESTLIBDIR)/ec/$(LP)ec$(SO).0
ln -sf $(LP)ec2$(SOV) $(DESTLIBDIR)/ec/$(LP)ec2$(SO).0
ln -sf $(LP)EDA$(SOV) $(DESTLIBDIR)/ec/$(LP)EDA$(SO).0
ifdef EDAdBASE
ln -sf $(LP)EDAdBASE$(SOV) $(DESTLIBDIR)/ec/$(LP)EDAdBASE$(SO).0
endif
ifdef EDASQLite
ln -sf $(LP)EDASQLite$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLite$(SO).0
endif
ifdef EDASQLiteCipher
ln -sf $(LP)EDASQLiteCipher$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SO).0
endif
ifneq ($(ECERE_AUDIO),n)
ln -sf $(LP)EcereAudio$(SOV) $(DESTLIBDIR)/ec/$(LP)EcereAudio$(SO).0
endif
ln -sf $(LP)ecere$(SOV) $(DESTLIBDIR)/$(LP)ecere$(SO)
ln -sf $(LP)ecereCOM$(SOV) $(DESTLIBDIR)/$(LP)ecereCOM$(SO)
ln -sf $(LP)ec$(SOV) $(DESTLIBDIR)/ec/$(LP)ec$(SO)
ln -sf $(LP)ec2$(SOV) $(DESTLIBDIR)/ec/$(LP)ec2$(SO)
ln -sf $(LP)EDA$(SOV) $(DESTLIBDIR)/ec/$(LP)EDA$(SO)
ifdef EDAdBASE
ln -sf $(LP)EDAdBASE$(SOV) $(DESTLIBDIR)/ec/$(LP)EDAdBASE$(SO)
endif
ifdef EDASQLite
ln -sf $(LP)EDASQLite$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLite$(SO)
endif
ln -sf ../$(LP)ecere$(SOV) $(DESTLIBDIR)/ec/$(LP)ecere$(SO)
ln -sf ../$(LP)ecereCOM$(SOV) $(DESTLIBDIR)/ec/$(LP)ecereCOM$(SO)
ifdef EDASQLiteCipher
ln -sf $(LP)EDASQLiteCipher$(SOV) $(DESTLIBDIR)/ec/$(LP)EDASQLiteCipher$(SO)
endif
ifneq ($(ECERE_AUDIO),n)
ln -sf $(LP)EcereAudio$(SOV) $(DESTLIBDIR)/ec/$(LP)EcereAudio$(SO)
endif
ifndef BSD_HOST
install $(INSTALL_FLAGS) -m 644 share/pixmaps/ecere.png $(DESTDIR)$(prefix)/share/pixmaps/ecere.png
install $(INSTALL_FLAGS) -m 644 share/applications/ecere.desktop $(DESTDIR)$(prefix)/share/applications/ecere.desktop
endif
else
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)ecere$(SO) $(DESTLIBDIR)/$(LP)ecere$(SO)
install $(INSTALL_FLAGS) $(OBJLIBDIR)$(LP)ecereCOM$(SO) $(DESTLIBDIR)/$(LP)ecereCOM$(SO)
endif
install $(INSTALL_FLAGS) $(OBJBINDIR)ecere-ide$(B32_SFX)$(E) $(BINDIR)/ecere-ide$(B32_SFX)$(E)
install $(INSTALL_FLAGS) $(OBJBINDIR)ear$(B32_SFX)$(E) $(BINDIR)/ear$(B32_SFX)$(E)
install $(INSTALL_FLAGS) $(OBJBINDIR)ecc$(B32_SFX)$(E) $(BINDIR)/ecc$(B32_SFX)$(E)
install $(INSTALL_FLAGS) $(OBJBINDIR)ecp$(B32_SFX)$(E) $(BINDIR)/ecp$(B32_SFX)$(E)
install $(INSTALL_FLAGS) $(OBJBINDIR)ecs$(B32_SFX)$(E) $(BINDIR)/ecs$(B32_SFX)$(E)
install $(INSTALL_FLAGS) $(OBJBINDIR)epj2make$(B32_SFX)$(E) $(BINDIR)/epj2make$(E)