Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
813 lines (630 loc) · 41.1 KB
/
Copy pathMakefile
File metadata and controls
813 lines (630 loc) · 41.1 KB
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
#!/usr/bin/make -f
.DEFAULT_GOAL := build
CXX ?= g++
CXXFLAGS ?= -std=c++17 -Wall -Wextra -Werror -pedantic -Iinclude
LDLIBS ?= -lsqlite3 -ldl
BUILD_DIR := build
ROOT_BIN := linscp
BUILD_BIN := $(BUILD_DIR)/linscp-core
RUN_ARGS ?= --core-status
.PHONY: build first-run ubuntu-first-run ubuntu-build-run ubuntu-launch fedora-first-run fedora-build-run fedora-launch deps deps-print all clean check-core install uninstall run-built run run-cli build-bin linscp-core root-launcher gui ast clang-ast-plugin objects test-objects build-only debs install-debs ubuntu-deps ubuntu-deps-print fedora-deps fedora-deps-print system-config-print system-config-install store-init gui-dnd-deps-print gui-dnd-deps pe-icon-test pe-icon-deps-print pe-icon-deps desktop-check desktop-install rpm-check rpm-prep rpm appimage-check appimage-prep appimage handbook-audit handbook-detector
CORE_OBJECTS := \
$(BUILD_DIR)/Compat.o \
$(BUILD_DIR)/Exceptions.o \
$(BUILD_DIR)/FileOperationProgress.o \
$(BUILD_DIR)/SessionInfo.o \
$(BUILD_DIR)/Option.o \
$(BUILD_DIR)/NamedObjs.o \
$(BUILD_DIR)/FileBuffer.o \
$(BUILD_DIR)/Security.o \
$(BUILD_DIR)/Global.o \
$(BUILD_DIR)/FileInfo.o \
$(BUILD_DIR)/FileSystems.o \
$(BUILD_DIR)/Interface.o \
$(BUILD_DIR)/RemoteTokens.o \
$(BUILD_DIR)/RemotePaths.o \
$(BUILD_DIR)/RemoteRights.o \
$(BUILD_DIR)/Http.o \
$(BUILD_DIR)/FileMasks.o \
$(BUILD_DIR)/CopyParam.o \
$(BUILD_DIR)/Bookmarks.o \
$(BUILD_DIR)/IniFile.o \
$(BUILD_DIR)/HierarchicalStorage.o \
$(BUILD_DIR)/Usage.o \
$(BUILD_DIR)/Configuration.o \
$(BUILD_DIR)/SessionData.o \
$(BUILD_DIR)/SessionStore.o \
$(BUILD_DIR)/Registry.o \
$(BUILD_DIR)/WinSCP.o \
$(BUILD_DIR)/SshKeyTools.o \
$(BUILD_DIR)/SshBackendIntf.o \
$(BUILD_DIR)/Cryptography.o \
$(BUILD_DIR)/NeonIntf.o \
$(BUILD_DIR)/SecureShell.o \
$(BUILD_DIR)/RemoteFiles.o \
$(BUILD_DIR)/Queue.o \
$(BUILD_DIR)/CoreMain.o
TESTS := \
test-options \
test-namedobjs \
test-filebuffer \
test-security \
test-global \
test-fileinfo \
test-filesystems \
test-interface \
test-remotetokens \
test-remotepaths \
test-remoterights \
test-http \
test-filemasks \
test-copyparam \
test-bookmarks \
test-inifile \
test-usage \
test-configuration \
test-exceptions \
test-fileoperationprogress \
test-sessioninfo \
test-sessiondata \
test-sessionstore \
test-sshkeytools \
test-sshbackendintf \
test-cryptography \
test-neonintf \
test-secureshell \
test-remotefiles \
test-queue \
test-coremain \
test-common \
test-keygen \
test-terminal \
test-protocols \
test-script \
test-console \
test-appcore
# Friendly Linux VM entry point. Plain `make` now enters the build path.
# It detects Ubuntu/Debian apt or Fedora/RHEL dnf, installs/checks packages,
# builds the core, runs smoke checks, and launches the GUI when DISPLAY is
# available. Use `make build-only` for a compiler-only build or `make all` for
# the historical full compile/test target.
build: first-run
first-run:
./scripts/first-run.sh
ubuntu-first-run:
./scripts/ubuntu-first-run.sh
ubuntu-build-run:
./scripts/ubuntu-first-run.sh
ubuntu-launch:
./scripts/ubuntu-first-run.sh --no-install --no-build --no-tests --gui
fedora-first-run:
./scripts/fedora-first-run.sh
fedora-launch:
./scripts/fedora-first-run.sh --no-install --no-build --no-tests --gui
deps: ubuntu-deps
deps-print: ubuntu-deps-print
all: $(TESTS) $(ROOT_BIN) root-launcher run-built
# Precompile/link staging for long codebot passes. Use `make objects` first,
# then `make build-only` or `make all`, so object compile errors are isolated
# from link/test/run failures.
objects: $(CORE_OBJECTS) $(APP_CORE_OBJECTS) $(BUILD_DIR)/LinScpCli.o
test-objects: objects \
$(BUILD_DIR)/test_options.o \
$(BUILD_DIR)/test_namedobjs.o \
$(BUILD_DIR)/test_filebuffer.o \
$(BUILD_DIR)/test_security.o \
$(BUILD_DIR)/test_global.o \
$(BUILD_DIR)/test_fileinfo.o \
$(BUILD_DIR)/test_filesystems.o \
$(BUILD_DIR)/test_interface.o \
$(BUILD_DIR)/test_remotetokens.o \
$(BUILD_DIR)/test_remotepaths.o \
$(BUILD_DIR)/test_remoterights.o \
$(BUILD_DIR)/test_http.o \
$(BUILD_DIR)/test_filemasks.o \
$(BUILD_DIR)/test_copyparam.o \
$(BUILD_DIR)/test_bookmarks.o \
$(BUILD_DIR)/test_inifile.o \
$(BUILD_DIR)/test_usage.o \
$(BUILD_DIR)/test_configuration.o \
$(BUILD_DIR)/test_exceptions.o \
$(BUILD_DIR)/test_fileoperationprogress.o \
$(BUILD_DIR)/test_sessioninfo.o \
$(BUILD_DIR)/test_sessiondata.o \
$(BUILD_DIR)/test_sessionstore.o \
$(BUILD_DIR)/test_sshkeytools.o \
$(BUILD_DIR)/test_sshbackendintf.o \
$(BUILD_DIR)/test_cryptography.o \
$(BUILD_DIR)/test_neonintf.o \
$(BUILD_DIR)/test_secureshell.o \
$(BUILD_DIR)/test_remotefiles.o \
$(BUILD_DIR)/test_queue.o \
$(BUILD_DIR)/test_coremain.o \
$(BUILD_DIR)/test_common.o \
$(BUILD_DIR)/test_keygen.o \
$(BUILD_DIR)/test_terminal.o \
$(BUILD_DIR)/test_protocols.o \
$(BUILD_DIR)/test_script.o \
$(BUILD_DIR)/test_console.o \
$(BUILD_DIR)/test_appcore.o
build-only: objects $(ROOT_BIN) root-launcher
$(BUILD_DIR)/.dir:
mkdir -p $(BUILD_DIR)
touch $(BUILD_DIR)/.dir
$(BUILD_DIR)/Compat.o: src/core/Compat.cpp include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Exceptions.o: src/core/Exceptions.cpp include/linscp/Exceptions.h include/linscp/Compat.h include/linscp/Usage.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/FileOperationProgress.o: src/core/FileOperationProgress.cpp include/linscp/FileOperationProgress.h include/linscp/TransferTypes.h include/linscp/Global.h include/linscp/Exceptions.h include/linscp/Interface.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Option.o: src/core/Option.cpp include/linscp/Option.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/NamedObjs.o: src/core/NamedObjs.cpp include/linscp/NamedObjs.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/FileBuffer.o: src/core/FileBuffer.cpp include/linscp/FileBuffer.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Security.o: src/core/Security.cpp include/linscp/Security.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Global.o: src/core/Global.cpp include/linscp/Global.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/FileInfo.o: src/core/FileInfo.cpp include/linscp/FileInfo.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/FileSystems.o: src/core/FileSystems.cpp include/linscp/FileSystems.h include/linscp/Compat.h include/linscp/TerminalFwd.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Interface.o: src/core/Interface.cpp include/linscp/Interface.h include/linscp/TerminalFwd.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/RemoteTokens.o: src/core/RemoteTokens.cpp include/linscp/RemoteTokens.h include/linscp/TerminalFwd.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_options.o: tests/test_options.cpp include/linscp/Option.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_namedobjs.o: tests/test_namedobjs.cpp include/linscp/NamedObjs.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_filebuffer.o: tests/test_filebuffer.cpp include/linscp/FileBuffer.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_security.o: tests/test_security.cpp include/linscp/Security.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_global.o: tests/test_global.cpp include/linscp/Global.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_fileinfo.o: tests/test_fileinfo.cpp include/linscp/FileInfo.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_filesystems.o: tests/test_filesystems.cpp include/linscp/FileSystems.h include/linscp/Compat.h include/linscp/TerminalFwd.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_interface.o: tests/test_interface.cpp include/linscp/Interface.h include/linscp/TerminalFwd.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Bookmarks.o: src/core/Bookmarks.cpp include/linscp/Bookmarks.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_bookmarks.o: tests/test_bookmarks.cpp include/linscp/Bookmarks.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_remotetokens.o: tests/test_remotetokens.cpp include/linscp/RemoteTokens.h include/linscp/TerminalFwd.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-options: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/test_options.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_options
$(BUILD_DIR)/test_options
test-namedobjs: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/NamedObjs.o $(BUILD_DIR)/test_namedobjs.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_namedobjs
$(BUILD_DIR)/test_namedobjs
test-filebuffer: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/FileBuffer.o $(BUILD_DIR)/test_filebuffer.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_filebuffer
$(BUILD_DIR)/test_filebuffer
test-security: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/test_security.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_security
$(BUILD_DIR)/test_security
test-global: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/test_global.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_global
$(BUILD_DIR)/test_global
test-fileinfo: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/test_fileinfo.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_fileinfo
$(BUILD_DIR)/test_fileinfo
test-filesystems: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/FileSystems.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/Terminal.o $(BUILD_DIR)/test_filesystems.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_filesystems
$(BUILD_DIR)/test_filesystems
test-interface: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/test_interface.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_interface
$(BUILD_DIR)/test_interface
test-remotetokens: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/Terminal.o $(BUILD_DIR)/test_remotetokens.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_remotetokens
$(BUILD_DIR)/test_remotetokens
$(BUILD_DIR)/RemotePaths.o: src/core/RemotePaths.cpp include/linscp/RemotePaths.h include/linscp/RemoteTokens.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_remotepaths.o: tests/test_remotepaths.cpp include/linscp/RemotePaths.h include/linscp/RemoteTokens.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-remotepaths: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/test_remotepaths.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_remotepaths
$(BUILD_DIR)/test_remotepaths
$(BUILD_DIR)/RemoteRights.o: src/core/RemoteRights.cpp include/linscp/RemoteRights.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_remoterights.o: tests/test_remoterights.cpp include/linscp/RemoteRights.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-remoterights: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/test_remoterights.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_remoterights
$(BUILD_DIR)/test_remoterights
$(BUILD_DIR)/Http.o: src/core/Http.cpp include/linscp/Http.h include/linscp/Exceptions.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_http.o: tests/test_http.cpp include/linscp/Http.h include/linscp/Exceptions.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-http: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Http.o $(BUILD_DIR)/test_http.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_http
$(BUILD_DIR)/test_http
test-bookmarks: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Bookmarks.o $(BUILD_DIR)/test_bookmarks.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_bookmarks
$(BUILD_DIR)/test_bookmarks
$(BUILD_DIR)/IniFile.o: src/core/IniFile.cpp include/linscp/IniFile.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/HierarchicalStorage.o: src/core/HierarchicalStorage.cpp include/linscp/HierarchicalStorage.h include/linscp/IniFile.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Usage.o: src/core/Usage.cpp include/linscp/Usage.h include/linscp/Configuration.h include/linscp/HierarchicalStorage.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_inifile.o: tests/test_inifile.cpp include/linscp/IniFile.h include/linscp/HierarchicalStorage.h include/linscp/Interface.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_usage.o: tests/test_usage.cpp include/linscp/Usage.h include/linscp/Configuration.h include/linscp/HierarchicalStorage.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-inifile: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/test_inifile.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_inifile
$(BUILD_DIR)/test_inifile
test-usage: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/test_usage.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_usage
$(BUILD_DIR)/test_usage
$(BUILD_DIR)/Configuration.o: src/core/Configuration.cpp include/linscp/Configuration.h include/linscp/HierarchicalStorage.h include/linscp/Security.h include/linscp/Usage.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_configuration.o: tests/test_configuration.cpp include/linscp/Configuration.h include/linscp/Usage.h include/linscp/HierarchicalStorage.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-configuration: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/test_configuration.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_configuration
$(BUILD_DIR)/test_configuration
$(BUILD_DIR)/test_exceptions.o: tests/test_exceptions.cpp include/linscp/Exceptions.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-exceptions: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/test_exceptions.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_exceptions
$(BUILD_DIR)/test_exceptions
$(BUILD_DIR)/test_fileoperationprogress.o: tests/test_fileoperationprogress.cpp include/linscp/FileOperationProgress.h include/linscp/TransferTypes.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-fileoperationprogress: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/test_fileoperationprogress.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_fileoperationprogress
$(BUILD_DIR)/test_fileoperationprogress
$(BUILD_DIR)/SessionInfo.o: src/core/SessionInfo.cpp include/linscp/SessionInfo.h include/linscp/Configuration.h include/linscp/Exceptions.h include/linscp/Interface.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_sessioninfo.o: tests/test_sessioninfo.cpp include/linscp/SessionInfo.h include/linscp/Configuration.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-sessioninfo: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/SessionInfo.o $(BUILD_DIR)/test_sessioninfo.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_sessioninfo
$(BUILD_DIR)/test_sessioninfo
$(BUILD_DIR)/FileMasks.o: src/core/FileMasks.cpp include/linscp/FileMasks.h include/linscp/Compat.h include/linscp/Exceptions.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/CopyParam.o: src/core/CopyParam.cpp include/linscp/CopyParam.h include/linscp/FileMasks.h include/linscp/RemoteRights.h include/linscp/HierarchicalStorage.h include/linscp/TransferTypes.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_filemasks.o: tests/test_filemasks.cpp include/linscp/FileMasks.h include/linscp/Compat.h include/linscp/Exceptions.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-filemasks: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/FileMasks.o $(BUILD_DIR)/test_filemasks.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_filemasks
$(BUILD_DIR)/test_filemasks
$(BUILD_DIR)/test_copyparam.o: tests/test_copyparam.cpp include/linscp/CopyParam.h include/linscp/FileMasks.h include/linscp/RemoteRights.h include/linscp/HierarchicalStorage.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-copyparam: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/FileMasks.o $(BUILD_DIR)/CopyParam.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/test_copyparam.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_copyparam
$(BUILD_DIR)/test_copyparam
$(BUILD_DIR)/CoreMain.o: src/core/CoreMain.cpp include/linscp/CoreMain.h include/linscp/Configuration.h include/linscp/SessionInfo.h include/linscp/Interface.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_coremain.o: tests/test_coremain.cpp include/linscp/CoreMain.h include/linscp/Usage.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-coremain: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/SessionInfo.o $(BUILD_DIR)/CoreMain.o $(BUILD_DIR)/test_coremain.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_coremain
$(BUILD_DIR)/test_coremain
clean:
rm -rf $(BUILD_DIR)
rm -f $(ROOT_BIN)
$(BUILD_DIR)/SessionData.o: src/core/SessionData.cpp include/linscp/SessionData.h include/linscp/Option.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/SshKeyTools.o: src/core/SshKeyTools.cpp include/linscp/SshKeyTools.h include/linscp/SessionData.h include/linscp/FileBuffer.h include/linscp/HierarchicalStorage.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/SshBackendIntf.o: src/core/SshBackendIntf.cpp include/linscp/SshBackendIntf.h include/linscp/CoreMain.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Cryptography.o: src/core/Cryptography.cpp include/linscp/Cryptography.h include/linscp/SshKeyTools.h include/linscp/FileBuffer.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/NeonIntf.o: src/core/NeonIntf.cpp include/linscp/NeonIntf.h include/linscp/SessionData.h include/linscp/SessionInfo.h include/linscp/TerminalFwd.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/SecureShell.o: src/core/SecureShell.cpp include/linscp/SecureShell.h include/linscp/SshBackendIntf.h include/linscp/SessionData.h include/linscp/SessionInfo.h include/linscp/Configuration.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_sessiondata.o: tests/test_sessiondata.cpp include/linscp/SessionData.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/SessionStore.o: src/core/SessionStore.cpp include/linscp/SessionStore.h include/linscp/SessionData.h include/linscp/IniFile.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Registry.o: src/core/Registry.cpp include/linscp/Registry.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/WinSCP.o: src/core/WinSCP.cpp include/linscp/WinSCP.h include/linscp/Registry.h include/linscp/SessionStore.h include/linscp/Security.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_sessionstore.o: tests/test_sessionstore.cpp include/linscp/SessionStore.h include/linscp/SessionData.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_sshkeytools.o: tests/test_sshkeytools.cpp include/linscp/SshKeyTools.h include/linscp/FileBuffer.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_sshbackendintf.o: tests/test_sshbackendintf.cpp include/linscp/SshBackendIntf.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_cryptography.o: tests/test_cryptography.cpp include/linscp/Cryptography.h include/linscp/FileBuffer.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_neonintf.o: tests/test_neonintf.cpp include/linscp/NeonIntf.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_secureshell.o: tests/test_secureshell.cpp include/linscp/SecureShell.h include/linscp/SessionData.h include/linscp/Configuration.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-sessiondata: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/test_sessiondata.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_sessiondata
$(BUILD_DIR)/test_sessiondata
test-sessionstore: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/Registry.o $(BUILD_DIR)/SessionStore.o $(BUILD_DIR)/WinSCP.o $(BUILD_DIR)/test_sessionstore.o
$(CXX) $(CXXFLAGS) $^ $(LDLIBS) -o $(BUILD_DIR)/test_sessionstore
$(BUILD_DIR)/test_sessionstore
test-sshkeytools: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/FileBuffer.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/SshKeyTools.o $(BUILD_DIR)/test_sshkeytools.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_sshkeytools
$(BUILD_DIR)/test_sshkeytools
test-sshbackendintf: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/FileBuffer.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/SessionInfo.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/CoreMain.o $(BUILD_DIR)/SshKeyTools.o $(BUILD_DIR)/SshBackendIntf.o $(BUILD_DIR)/test_sshbackendintf.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_sshbackendintf
$(BUILD_DIR)/test_sshbackendintf
test-cryptography: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/FileBuffer.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/SshKeyTools.o $(BUILD_DIR)/Cryptography.o $(BUILD_DIR)/test_cryptography.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_cryptography
$(BUILD_DIR)/test_cryptography
test-neonintf: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/SessionInfo.o $(BUILD_DIR)/Terminal.o $(BUILD_DIR)/NeonIntf.o $(BUILD_DIR)/test_neonintf.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_neonintf
$(BUILD_DIR)/test_neonintf
test-secureshell: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/FileBuffer.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/SessionInfo.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/CoreMain.o $(BUILD_DIR)/SshKeyTools.o $(BUILD_DIR)/SshBackendIntf.o $(BUILD_DIR)/SecureShell.o $(BUILD_DIR)/test_secureshell.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_secureshell
$(BUILD_DIR)/test_secureshell
$(BUILD_DIR)/RemoteFiles.o: src/core/RemoteFiles.cpp include/linscp/RemoteFiles.h include/linscp/RemotePaths.h include/linscp/RemoteRights.h include/linscp/RemoteTokens.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Queue.o: src/core/Queue.cpp include/linscp/Queue.h include/linscp/FileOperationProgress.h include/linscp/SessionData.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -pthread -c $< -o $@
$(BUILD_DIR)/test_remotefiles.o: tests/test_remotefiles.cpp include/linscp/RemoteFiles.h include/linscp/RemoteRights.h include/linscp/RemotePaths.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_queue.o: tests/test_queue.cpp include/linscp/Queue.h include/linscp/FileOperationProgress.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -pthread -c $< -o $@
test-remotefiles: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/test_remotefiles.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_remotefiles
$(BUILD_DIR)/test_remotefiles
test-queue: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/Terminal.o $(BUILD_DIR)/Queue.o $(BUILD_DIR)/test_queue.o
$(CXX) $(CXXFLAGS) -pthread $^ -o $(BUILD_DIR)/test_queue
$(BUILD_DIR)/test_queue
# Pass 020 bridge modules
$(BUILD_DIR)/Common.o: src/core/Common.cpp include/linscp/Common.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/KeyGen.o: src/core/KeyGen.cpp include/linscp/KeyGen.h include/linscp/Common.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Terminal.o: src/core/Terminal.cpp include/linscp/Terminal.h include/linscp/TerminalFwd.h include/linscp/RemoteFiles.h include/linscp/SessionData.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/ProtocolFacade.o: src/core/ProtocolFacade.cpp include/linscp/ProtocolFacade.h include/linscp/Terminal.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/SftpFileSystem.o: src/core/SftpFileSystem.cpp include/linscp/SftpFileSystem.h include/linscp/ProtocolFacade.h include/linscp/SshBackendIntf.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/ScpFileSystem.o: src/core/ScpFileSystem.cpp include/linscp/ScpFileSystem.h include/linscp/ProtocolFacade.h include/linscp/SessionData.h include/linscp/TerminalFwd.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/FtpFileSystem.o: src/core/FtpFileSystem.cpp include/linscp/FtpFileSystem.h include/linscp/ProtocolFacade.h include/linscp/SessionData.h include/linscp/TerminalFwd.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/WebDAVFileSystem.o: src/core/WebDAVFileSystem.cpp include/linscp/WebDAVFileSystem.h include/linscp/ProtocolFacade.h include/linscp/SessionData.h include/linscp/TerminalFwd.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/S3FileSystem.o: src/core/S3FileSystem.cpp include/linscp/S3FileSystem.h include/linscp/ProtocolFacade.h include/linscp/SessionData.h include/linscp/TerminalFwd.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/Script.o: src/core/Script.cpp include/linscp/Script.h include/linscp/Terminal.h include/linscp/Common.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_common.o: tests/test_common.cpp include/linscp/Common.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_keygen.o: tests/test_keygen.cpp include/linscp/KeyGen.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_terminal.o: tests/test_terminal.cpp include/linscp/Terminal.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_protocols.o: tests/test_protocols.cpp include/linscp/SftpFileSystem.h include/linscp/ScpFileSystem.h include/linscp/FtpFileSystem.h include/linscp/WebDAVFileSystem.h include/linscp/S3FileSystem.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_script.o: tests/test_script.cpp include/linscp/Script.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
test-common: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/test_common.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_common
$(BUILD_DIR)/test_common
test-keygen: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/KeyGen.o $(BUILD_DIR)/test_keygen.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_keygen
$(BUILD_DIR)/test_keygen
test-terminal: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/Terminal.o $(BUILD_DIR)/test_terminal.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_terminal
$(BUILD_DIR)/test_terminal
test-protocols: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/SessionInfo.o $(BUILD_DIR)/CoreMain.o $(BUILD_DIR)/SshKeyTools.o $(BUILD_DIR)/SshBackendIntf.o $(BUILD_DIR)/Terminal.o $(BUILD_DIR)/ProtocolFacade.o $(BUILD_DIR)/SftpFileSystem.o $(BUILD_DIR)/ScpFileSystem.o $(BUILD_DIR)/FtpFileSystem.o $(BUILD_DIR)/WebDAVFileSystem.o $(BUILD_DIR)/S3FileSystem.o $(BUILD_DIR)/test_protocols.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_protocols
$(BUILD_DIR)/test_protocols
test-script: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Common.o $(BUILD_DIR)/Exceptions.o $(BUILD_DIR)/Global.o $(BUILD_DIR)/Interface.o $(BUILD_DIR)/Configuration.o $(BUILD_DIR)/Usage.o $(BUILD_DIR)/HierarchicalStorage.o $(BUILD_DIR)/IniFile.o $(BUILD_DIR)/FileInfo.o $(BUILD_DIR)/Security.o $(BUILD_DIR)/FileOperationProgress.o $(BUILD_DIR)/RemoteTokens.o $(BUILD_DIR)/RemotePaths.o $(BUILD_DIR)/RemoteRights.o $(BUILD_DIR)/RemoteFiles.o $(BUILD_DIR)/Option.o $(BUILD_DIR)/SessionData.o $(BUILD_DIR)/Terminal.o $(BUILD_DIR)/Script.o $(BUILD_DIR)/test_script.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_script
$(BUILD_DIR)/test_script
# Pass 021 runnable core app
$(BUILD_DIR)/Console.o: src/core/Console.cpp include/linscp/Console.h include/linscp/Compat.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/AppCore.o: src/app/AppCore.cpp include/linscp/AppCore.h include/linscp/Common.h include/linscp/Configuration.h include/linscp/Console.h include/linscp/FileMasks.h include/linscp/Script.h include/linscp/Terminal.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/LinScpCli.o: src/app/LinScpCli.cpp include/linscp/AppCore.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_appcore.o: tests/test_appcore.cpp include/linscp/AppCore.h include/linscp/Console.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
$(BUILD_DIR)/test_console.o: tests/test_console.cpp include/linscp/Console.h | $(BUILD_DIR)/.dir
$(CXX) $(CXXFLAGS) -c $< -o $@
APP_CORE_OBJECTS := \
$(BUILD_DIR)/Compat.o \
$(BUILD_DIR)/Common.o \
$(BUILD_DIR)/Exceptions.o \
$(BUILD_DIR)/Global.o \
$(BUILD_DIR)/Interface.o \
$(BUILD_DIR)/Configuration.o \
$(BUILD_DIR)/Usage.o \
$(BUILD_DIR)/HierarchicalStorage.o \
$(BUILD_DIR)/IniFile.o \
$(BUILD_DIR)/FileInfo.o \
$(BUILD_DIR)/Security.o \
$(BUILD_DIR)/FileBuffer.o \
$(BUILD_DIR)/FileMasks.o \
$(BUILD_DIR)/CopyParam.o \
$(BUILD_DIR)/FileOperationProgress.o \
$(BUILD_DIR)/RemoteTokens.o \
$(BUILD_DIR)/RemotePaths.o \
$(BUILD_DIR)/RemoteRights.o \
$(BUILD_DIR)/RemoteFiles.o \
$(BUILD_DIR)/Option.o \
$(BUILD_DIR)/SessionData.o \
$(BUILD_DIR)/SessionStore.o \
$(BUILD_DIR)/Registry.o \
$(BUILD_DIR)/WinSCP.o \
$(BUILD_DIR)/SessionInfo.o \
$(BUILD_DIR)/CoreMain.o \
$(BUILD_DIR)/SshBackendIntf.o \
$(BUILD_DIR)/Terminal.o \
$(BUILD_DIR)/ProtocolFacade.o \
$(BUILD_DIR)/SftpFileSystem.o \
$(BUILD_DIR)/ScpFileSystem.o \
$(BUILD_DIR)/FtpFileSystem.o \
$(BUILD_DIR)/WebDAVFileSystem.o \
$(BUILD_DIR)/S3FileSystem.o \
$(BUILD_DIR)/Script.o \
$(BUILD_DIR)/Console.o \
$(BUILD_DIR)/AppCore.o
$(ROOT_BIN): $(APP_CORE_OBJECTS) $(BUILD_DIR)/LinScpCli.o
$(CXX) $(CXXFLAGS) $^ $(LDLIBS) -o $(ROOT_BIN)
chmod +x $(ROOT_BIN)
mkdir -p $(BUILD_DIR)
cp -f $(ROOT_BIN) $(BUILD_BIN)
$(BUILD_BIN): $(ROOT_BIN)
mkdir -p $(BUILD_DIR)
cp -f $(ROOT_BIN) $(BUILD_BIN)
# Build the canonical root binary. A compatibility copy is kept at build/linscp-core.
linscp-core: $(BUILD_BIN)
build-bin: $(ROOT_BIN)
root-launcher:
chmod +x ./linscp-gui
run-built: $(ROOT_BIN) root-launcher
@echo "[LinSCP] running ./$(ROOT_BIN) $(RUN_ARGS)"
./$(ROOT_BIN) $(RUN_ARGS)
run: gui
run-cli: run-built
# Clang AST tooling. Use this before serious porting passes.
ast:
./scripts/run-clang-ast.sh
# Optional gifted Clang plugin/template build. Requires llvm-config and Clang development headers.
clang-ast-plugin:
@if ! command -v llvm-config >/dev/null 2>&1; then echo "[LinSCP AST] llvm-config missing; optional plugin build skipped. Use make ast for the normal AST workflow."; exit 127; fi
$(MAKE) -C vendor/clang
gui: $(ROOT_BIN) root-launcher
./linscp-gui
test-console: $(BUILD_DIR)/Compat.o $(BUILD_DIR)/Console.o $(BUILD_DIR)/test_console.o
$(CXX) $(CXXFLAGS) $^ -o $(BUILD_DIR)/test_console
$(BUILD_DIR)/test_console
test-appcore: $(APP_CORE_OBJECTS) $(BUILD_DIR)/test_appcore.o
$(CXX) $(CXXFLAGS) $^ $(LDLIBS) -o $(BUILD_DIR)/test_appcore
$(BUILD_DIR)/test_appcore
handbook-audit: $(ROOT_BIN) root-launcher handbook-detector
./$(ROOT_BIN) handbook-audit --strict
handbook-detector:
python3 tools/handbook_cpp_detector.py --strict .
check-core: $(ROOT_BIN) root-launcher
./$(ROOT_BIN) --core-status
./$(ROOT_BIN) --config-dump
./$(ROOT_BIN) --store-status
./$(ROOT_BIN) system-doctor
./$(ROOT_BIN) session-sync
./$(ROOT_BIN) session-list
./$(ROOT_BIN) --self-test
./$(ROOT_BIN) open sftp://demo@example.com --dry-run
./$(ROOT_BIN) script "open sftp://demo@example.com" "cd /var/www" close
PREFIX ?= /usr/local
SYSCONFDIR ?= /etc
LOCALSTATEDIR ?= /var
DESTDIR ?=
install: $(ROOT_BIN) root-launcher
install -d $(DESTDIR)$(PREFIX)/bin
install -m 0755 $(ROOT_BIN) $(DESTDIR)$(PREFIX)/bin/linscp
install -m 0755 linscp-gui $(DESTDIR)$(PREFIX)/bin/linscp-gui
install -d $(DESTDIR)$(SYSCONFDIR)/linscp
install -m 0644 dist/etc/config.ini $(DESTDIR)$(SYSCONFDIR)/linscp/config.ini
install -d $(DESTDIR)$(LOCALSTATEDIR)/lib/linscp
install -d $(DESTDIR)$(PREFIX)/share/applications
install -m 0644 packaging/linscp.desktop $(DESTDIR)$(PREFIX)/share/applications/linscp.desktop
install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps
install -m 0644 assets/icons/linscp.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/linscp.svg
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/linscp
rm -f $(DESTDIR)$(PREFIX)/bin/linscp-gui
rm -f $(DESTDIR)$(SYSCONFDIR)/linscp/config.ini
rmdir $(DESTDIR)$(LOCALSTATEDIR)/lib/linscp 2>/dev/null || true
rm -f $(DESTDIR)$(PREFIX)/share/applications/linscp.desktop
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/linscp.svg
# User-local desktop integration for quick live-system testing.
desktop-check:
@test -f packaging/linscp.desktop
@test -f assets/icons/linscp.svg
@grep -q '^Exec=linscp-gui' packaging/linscp.desktop
@grep -q '^Icon=linscp' packaging/linscp.desktop
@echo "desktop-check=pass"
desktop-install: $(ROOT_BIN) root-launcher desktop-check
./packaging/install-desktop.sh
# Fedora/RPM packaging. rpm-prep is safe in minimal sandboxes and creates
# dist/rpm/SPECS + SOURCES. rpm attempts rpmbuild when available.
rpm-check:
@test -f packaging/linscp.spec.in
@test -x scripts/build-rpm.sh
@grep -q '^Name: linscp' packaging/linscp.spec.in
@grep -q 'sqlite-devel' packaging/linscp.spec.in
@grep -q 'openssh-clients' packaging/linscp.spec.in
@grep -q 'desktop-file-validate' packaging/linscp.spec.in
@echo "rpm-check=pass"
rpm-prep: $(ROOT_BIN) root-launcher rpm-check
./scripts/build-rpm.sh
rpm: $(ROOT_BIN) root-launcher rpm-check
./scripts/build-rpm.sh --build
# AppImage packaging scaffold. appimage-prep is safe in minimal sandboxes and
# creates dist/appimage/LinSCP.AppDir. appimage runs appimagetool when present.
appimage-check:
@test -x scripts/build-appimage.sh
@test -f packaging/linscp.desktop
@test -f assets/icons/linscp.svg
@test -f dist/etc/config.ini || test -f config.ini
@grep -q '^Exec=linscp-gui' packaging/linscp.desktop
@echo "appimage-check=pass"
appimage-prep: $(ROOT_BIN) root-launcher appimage-check
./scripts/build-appimage.sh
appimage: $(ROOT_BIN) root-launcher appimage-check
./scripts/build-appimage.sh --build
# Vendored Debian helper packages for sandbox/OpenSSH validation.
debs:
./scripts/install-vendored-debs.sh --check
install-debs:
./scripts/install-vendored-debs.sh
# Stock Ubuntu build/runtime helper. This is the primary first-run path for a
# clean Ubuntu VM: compile the C++ core, run the Tk GUI, persist SQLite sessions,
# and use native OpenSSH SFTP/SCP.
ubuntu-deps-print:
./scripts/ubuntu-first-run.sh --dry-run --deps-only
ubuntu-deps:
./scripts/ubuntu-first-run.sh --deps-only
ubuntu-check: $(ROOT_BIN) root-launcher
./$(ROOT_BIN) system-doctor
# Fedora/RPM helper kept for Fedora users.
fedora-deps-print:
./scripts/fedora-first-run.sh --dry-run --deps-only
fedora-deps:
./scripts/fedora-first-run.sh --deps-only
fedora-check: $(ROOT_BIN) root-launcher
./$(ROOT_BIN) system-doctor
fedora-build-run:
./scripts/fedora-first-run.sh
system-config-print:
@echo "sudo install -d /etc/linscp /var/lib/linscp"
@echo "sudo install -m 0644 dist/etc/config.ini /etc/linscp/config.ini"
@echo "sudo ./linscp store-init"
system-config-install: $(ROOT_BIN) root-launcher
sudo install -d /etc/linscp /var/lib/linscp
sudo install -m 0644 dist/etc/config.ini /etc/linscp/config.ini
sudo ./$(ROOT_BIN) store-init
store-init: $(ROOT_BIN) root-launcher
./$(ROOT_BIN) store-init
# Optional: enables PE/Windows EXE icon previews in the Tk GUI.
pe-icon-test:
python3 tests/test_pe_icon_extract.py
# Windows .lnk folder shortcut resolver used by the local pane.
lnk-test:
python3 tests/test_lnk_resolve.py
pe-icon-deps-print:
@echo "sudo dnf install -y python3-pillow"
pe-icon-deps:
sudo dnf install -y python3-pillow
# Optional: enables external desktop/file-manager drag/drop into the Tk GUI.
# Internal local-pane drag/drop works without this package.
gui-dnd-deps-print:
@echo "python3 -m pip install --user tkinterdnd2"
gui-dnd-deps:
python3 -m pip install --user tkinterdnd2