forked from msproul/AlpacaPi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·4935 lines (4238 loc) · 185 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
######################################################################################
# Make file for alpaca driver
# written by hand by Mark Sproul
# (C) 2019 by Mark Sproul
#
# sudo apt-get install build-essential
# sudo apt-get install libusb-1.0-0-dev
# sudo apt-get install libudev-dev
# sudo apt-get install libopencv-dev
# sudo apt-get install libi2c-dev
# sudo apt-get install libjpeg-dev
# sudo apt-get install libcfitsio-dev
#
# sudo apt-get install wiringpi
#
# sudo apt-get install libnova-dev <<<< required for TSC
#
# sudo apt-get install git-gui
#
# https://www.gnu.org/software/make/manual/make.html
#
# https://github.com/TheNextLVL/wiringPi
######################################################################################
# Edit History
######################################################################################
#++ Apr 9, 2019 <MLS> Started on alpaca driver
#++ Apr 29, 2019 <MLS> Added openCV support
#++ May 7, 2019 <MLS> Added smate build option
#++ May 24, 2019 <MLS> Added wx build option
#++ Jun 25, 2019 <MLS> Added jetson build option
#++ Aug 20, 2019 <MLS> Added ATIK support
#++ Jan 9, 2020 <MLS> Added ToupTek support
#++ Jan 24, 2020 <MLS> Moved _ENABLE_FITS_ to Makefile
#++ Feb 11, 2020 <MLS> Added shutter
#++ Apr 3, 2020 <MLS> Added _ENABLE_FLIR_
#++ Apr 16, 2020 <MLS> Added _ENABLE_PWM_SWITCH_
#++ Apr 22, 2020 <MLS> Added flir to build flir camera on ubuntu
#++ Jun 8, 2020 <MLS> Added video controller
#++ Jun 23, 2020 <MLS> Added preview controller
#++ Jul 16, 2020 <MLS> Added pi64 for 64 bit Raspberry Pi OS
#++ Dec 12, 2020 <MLS> Moved _ENABLE_REMOTE_SHUTTER_ into Makefile
#++ Jan 13, 2021 <MLS> Added build commands for touptech cameras
#++ Mar 18, 2021 <MLS> Updating Makefile to use AtikCamerasSDK_2020_10_19
#++ Mar 18, 2021 <MLS> Updating QHY camera support
#++ Apr 20, 2021 <MLS> Added _ENABLE_TELESCOPE_RIGEL_
#++ Apr 26, 2021 <MLS> Added _ENABLE_FILTERWHEEL_ZWO_
#++ Apr 26, 2021 <MLS> Added _ENABLE_FILTERWHEEL_ATIK_
#++ Jan 6, 2022 <MLS> Added _ENABLE_REMOTE_SQL_ & _ENABLE_REMOTE_GAIA_
#++ Jan 13, 2022 <MLS> Added _ENABLE_ASTEROIDS_
#++ Jan 18, 2022 <MLS> Added fitsview to makefile
#++ Mar 24, 2022 <MLS> Added -fPIE to compile options
#++ Mar 25, 2022 <MLS> Added _ENABLE_TELESCOPE_SERVO_
#++ Mar 26, 2022 <MLS> Added make_checkplatform.sh
#++ Mar 26, 2022 <MLS> Added make_checkopencv.sh
#++ Mar 26, 2022 <MLS> Added make_checksql.sh
#++ May 2, 2022 <MLS> Added IMU source directory (src_imu)
#++ May 2, 2022 <MLS> Added _ENABLE_IMU_
#++ May 2, 2022 <MLS> Added make moonlite for stand alone moonlite focuser driver
#++ May 4, 2022 <MLS> Added camera simulator (make camerasim)
#++ May 19, 2022 <MLS> Updated Makefile to reflect RNS filename changes
#++ Jun 30, 2022 <MLS> Added dumpfits to makefile
#++ Oct 17, 2022 <MLS> Added _ENABLE_FOCUSER_MOONLITE_
#++ Oct 17, 2022 <MLS> Added _ENABLE_FILTERWHEEL_USIS_
#++ Mar 5, 2023 <MLS> Re-organizing object lists
######################################################################################
# Cr_Core is for the Sony camera
######################################################################################
#PLATFORM = x86
#PLATFORM = x64
#PLATFORM = armv7
###########################################
# lets try to determine platform
MACHINE_TYPE = $(shell uname -m)
PLATFORM = $(shell ./make_checkplatform.sh)
OPENCV_VERSION = $(shell ./make_checkopencv.sh)
SQL_VERSION = $(shell ./make_checksql.sh)
###########################################
# default settings for Desktop Linux build
USR_HOME = $(HOME)/
GCC_DIR = /usr/bin/
INCLUDE_BASE = /usr/include/
LIB_BASE = /usr/lib/
# /usr/local/lib/pkgconfig/opencv.pc
OPENCV_COMPILE = $(shell pkg-config --cflags $(OPENCV_VERSION))
OPENCV_LINK = $(shell pkg-config --libs $(OPENCV_VERSION))
PHASEONE_INC = /usr/local/include/phaseone/include/
PHASEONE_LIB = /usr/local/lib/
SRC_DIR = ./src/
SRC_IMGPROC = ./src_imageproc/
SRC_IMU = ./src_imu/
SRC_DISCOVERY = ./src_discovery/
SRC_MOONRISE = ./src_MoonRise/
SRC_SERVO = ./src_servo/
SRC_PDS = ./src_pds/
MLS_LIB_DIR = ./src_mlsLib/
OBJECT_DIR = ./Objectfiles/
GD_DIR = ../gd/
ASI_LIB_DIR = ./ASI_lib
ASI_INCLUDE_DIR = ./ASI_lib/include
EFW_LIB_DIR = ./EFW_linux_mac_SDK
############################################
# as of Mar 18, 2021, supporting the AtikCamerasSDK_2020_10_19 version of ATIK
ATIK_DIR = ./AtikCamerasSDK
ATIK_LIB_MASTER_DIR = $(ATIK_DIR)/lib
ATIK_INCLUDE_DIR = $(ATIK_DIR)/include
ATIK_INCLUDE_DIR2 = $(ATIK_DIR)/inc
#ATIK_LIB_DIR = $(ATIK_LIB_MASTER_DIR)/linux/x64/NoFlyCapture
ATIK_LIB_DIR = $(ATIK_LIB_MASTER_DIR)/linux/64/NoFlyCapture
#ATIK_LIB_DIR_V129 = $(ATIK_LIB_MASTER_DIR)/ARM/pi/pi3/x86/NoFlyCapture
ATIK_LIB_DIR_ARM32 = $(ATIK_LIB_MASTER_DIR)/ARM/32/NoFlyCapture
ATIK_LIB_DIR_ARM64 = $(ATIK_LIB_MASTER_DIR)/ARM/64/NoFlyCapture
ATIK_PLATFORM = unknown
ifeq ($(PLATFORM), x64)
ATIK_PLATFORM = linux/64
endif
ifeq ($(PLATFORM), armv7)
ATIK_PLATFORM = ARM/32
endif
ifeq ($(PLATFORM), armv8)
ATIK_PLATFORM = ARM/64
endif
ATIK_LIB_DIR = $(ATIK_LIB_MASTER_DIR)/$(ATIK_PLATFORM)/NoFlyCapture
############################################
TOUP_DIR = ./toupcamsdk
TOUP_INCLUDE_DIR = $(TOUP_DIR)/inc
TOUP_LIB_DIR = $(TOUP_DIR)/linux/x64
############################################
FLIR_INCLUDE_DIR = /usr/include/spinnaker
############################################
SONY_INCLUDE_DIR = ./SONY_SDK/CRSDK
SONY_LIB_DIR = ./SONY_SDK/lib
############################################
# QHY support
QHY_INCLUDE_DIR = ./QHY/include
############################################
# QSI support
QSI_INCLUDE_DIR = ./qsiapi-7.6.0
DEFINEFLAGS += -D_INCLUDE_HTTP_HEADER_
DEFINEFLAGS += -D_INCLUDE_ALPACA_EXTENSIONS_
DEFINEFLAGS += -D_ALPACA_PI_
CFLAGS = -Wall -Wno-multichar -Wno-unknown-pragmas -Wstrict-prototypes
CFLAGS += -Wextra
#CFLAGS += -Werror
CFLAGS += -Wmissing-prototypes
#CFLAGS += -trigraphs
CFLAGS += -g
#CFLAGS += -Wno-unused-but-set-variable
#CFLAGS += -Wstrict-prototypes
#CFLAGS += -mx32
CFLAGS += -fPIE
CFLAGS += -Wno-implicit-fallthrough
CPLUSFLAGS = -Wall -Wno-multichar -Wno-unknown-pragmas
CPLUSFLAGS += -Wextra
CPLUSFLAGS += -Wuninitialized
CPLUSFLAGS += -Wmaybe-uninitialized
CPLUSFLAGS += -Wno-unused-parameter
#CPLUSFLAGS += -Wno-class-memaccess
#CPLUSFLAGS += -O2
#CPLUSFLAGS += -trigraphs
CPLUSFLAGS += -g
#CPLUSFLAGS += -Wno-unused-but-set-variable
CPLUSFLAGS += -fPIE
CPLUSFLAGS += -Wno-format-overflow
CPLUSFLAGS += -Wno-implicit-fallthrough
COMPILE = gcc -c $(CFLAGS) $(DEFINEFLAGS) $(OPENCV_COMPILE)
COMPILEPLUS = g++ -c $(CPLUSFLAGS) $(DEFINEFLAGS) $(OPENCV_COMPILE)
LINK = g++
INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(SRC_DIR) \
-I$(ASI_INCLUDE_DIR) \
-I$(ATIK_INCLUDE_DIR) \
-I$(ATIK_INCLUDE_DIR2) \
-I$(EFW_LIB_DIR) \
-I$(FLIR_INCLUDE_DIR) \
-I$(MLS_LIB_DIR) \
-I$(QHY_INCLUDE_DIR) \
-I$(SRC_IMGPROC) \
-I$(SRC_PDS) \
-I$(TOUP_INCLUDE_DIR) \
-I$(SONY_INCLUDE_DIR) \
# -I/usr/include/opencv2 \
# -I/usr/local/include/opencv2 \
# -I/usr/include/opencv4 \
# -I/usr/local/include/opencv4 \
######################################################################################
ASI_CAMERA_OBJECTS= \
$(ASI_LIB_DIR)/lib/$(PLATFORM)/libASICamera2.a \
######################################################################################
ZWO_EFW_OBJECTS= \
$(EFW_LIB_DIR)/lib/$(PLATFORM)/libEFWFilter.a \
######################################################################################
SOCKET_OBJECTS= \
$(OBJECT_DIR)socket_listen.o \
$(OBJECT_DIR)json_parse.o \
$(OBJECT_DIR)sendrequest_lib.o \
######################################################################################
DISCOVERY_LIB_OBJECTS= \
$(OBJECT_DIR)discovery_lib.o \
######################################################################################
# CPP objects
CPP_OBJECTS= \
$(OBJECT_DIR)cpu_stats.o \
$(OBJECT_DIR)discoverythread.o \
$(OBJECT_DIR)eventlogging.o \
$(OBJECT_DIR)HostNames.o \
$(OBJECT_DIR)JsonResponse.o \
$(OBJECT_DIR)linuxerrors.o \
$(OBJECT_DIR)lx200_com.o \
$(OBJECT_DIR)managementdriver.o \
$(OBJECT_DIR)observatory_settings.o \
$(OBJECT_DIR)readconfigfile.o \
$(OBJECT_DIR)sidereal.o \
$(OBJECT_DIR)serialport.o \
$(OBJECT_DIR)telescopedriver.o \
$(OBJECT_DIR)telescopedriver_comm.o \
$(OBJECT_DIR)telescopedriver_lx200.o \
$(OBJECT_DIR)telescopedriver_Rigel.o \
$(OBJECT_DIR)telescopedriver_servo.o \
$(OBJECT_DIR)telescopedriver_sim.o \
$(OBJECT_DIR)telescopedriver_skywatch.o \
######################################################################################
LIVE_WINDOW_OBJECTS= \
$(OBJECT_DIR)controller.o \
$(OBJECT_DIR)controller_image.o \
$(OBJECT_DIR)opencv_utils.o \
$(OBJECT_DIR)windowtab.o \
$(OBJECT_DIR)windowtab_about.o \
$(OBJECT_DIR)windowtab_image.o \
$(OBJECT_DIR)windowtab_imageinfo.o \
$(OBJECT_DIR)fits_opencv.o \
# $(OBJECT_DIR)controllerAlpaca.o \
######################################################################################
# Driver Objects
DRIVER_OBJECTS= \
$(OBJECT_DIR)alpacadriver.o \
$(OBJECT_DIR)alpacadriverConnect.o \
$(OBJECT_DIR)alpacadriverSetup.o \
$(OBJECT_DIR)alpacadriver_templog.o \
$(OBJECT_DIR)alpacadriver_helper.o \
$(OBJECT_DIR)alpaca_discovery.o \
$(OBJECT_DIR)alpacadriverLogging.o \
$(OBJECT_DIR)commoncolor.o \
$(OBJECT_DIR)julianTime.o \
$(OBJECT_DIR)moonphase.o \
$(OBJECT_DIR)MoonRise.o \
$(OBJECT_DIR)cpu_stats.o \
$(OBJECT_DIR)discoverythread.o \
$(OBJECT_DIR)eventlogging.o \
$(OBJECT_DIR)HostNames.o \
$(OBJECT_DIR)JsonResponse.o \
$(OBJECT_DIR)linuxerrors.o \
$(OBJECT_DIR)managementdriver.o \
$(OBJECT_DIR)observatory_settings.o \
$(OBJECT_DIR)readconfigfile.o \
$(OBJECT_DIR)sidereal.o \
######################################################################################
# Camera objects
CAMERA_DRIVER_OBJECTS= \
$(OBJECT_DIR)cameradriver.o \
$(OBJECT_DIR)cameradriverAnalysis.o \
$(OBJECT_DIR)cameradriver_ASI.o \
$(OBJECT_DIR)cameradriver_ATIK.o \
$(OBJECT_DIR)cameradriver_fits.o \
$(OBJECT_DIR)cameradriver_FLIR.o \
$(OBJECT_DIR)cameradriver_jpeg.o \
$(OBJECT_DIR)cameradriver_livewindow.o \
$(OBJECT_DIR)cameradriver_opencv.o \
$(OBJECT_DIR)cameradriver_png.o \
$(OBJECT_DIR)cameradriver_QHY.o \
$(OBJECT_DIR)cameradriver_QSI.o \
$(OBJECT_DIR)cameradriver_SONY.o \
$(OBJECT_DIR)cameradriver_save.o \
$(OBJECT_DIR)cameradriver_sim.o \
$(OBJECT_DIR)cameradriver_TOUP.o \
$(OBJECT_DIR)multicam.o \
######################################################################################
CALIBRATION_DRIVER_OBJECTS= \
$(OBJECT_DIR)calibrationdriver.o \
$(OBJECT_DIR)calibrationdriver_rpi.o \
$(OBJECT_DIR)calibration_Alnitak.o \
$(OBJECT_DIR)calibration_sim.o \
######################################################################################
DOME_DRIVER_OBJECTS= \
$(OBJECT_DIR)domedriver.o \
$(OBJECT_DIR)domedriver_sim.o \
$(OBJECT_DIR)domeshutter.o \
$(OBJECT_DIR)domedriver_rpi.o \
$(OBJECT_DIR)domedriver_ror_rpi.o \
$(OBJECT_DIR)raspberrypi_relaylib.o \
######################################################################################
SHUTTER_DRIVER_OBJECTS= \
$(OBJECT_DIR)shutterdriver.o \
$(OBJECT_DIR)shutterdriver_arduino.o \
######################################################################################
# Filterwheel objects
FITLERWHEEL_DRIVER_OBJECTS= \
$(OBJECT_DIR)filterwheeldriver.o \
$(OBJECT_DIR)filterwheeldriver_ATIK.o \
$(OBJECT_DIR)filterwheeldriver_ZWO.o \
$(OBJECT_DIR)filterwheeldriver_sim.o \
######################################################################################
FOCUSER_DRIVER_OBJECTS= \
$(OBJECT_DIR)focuserdriver.o \
$(OBJECT_DIR)focuserdriver_nc.o \
$(OBJECT_DIR)focuserdriver_sim.o \
$(OBJECT_DIR)moonlite_com.o \
$(OBJECT_DIR)rotatordriver.o \
$(OBJECT_DIR)rotatordriver_nc.o \
$(OBJECT_DIR)rotatordriver_sim.o \
######################################################################################
SLITTRACKER_DRIVER_OBJECTS= \
$(OBJECT_DIR)slittracker.o \
######################################################################################
OBSCOND_DRIVER_OBJECTS= \
$(OBJECT_DIR)obsconditionsdriver.o \
$(OBJECT_DIR)obsconditionsdriver_rpi.o \
$(OBJECT_DIR)obsconditionsdriver_sim.o \
######################################################################################
SWITCH_DRIVER_OBJECTS= \
$(OBJECT_DIR)switchdriver.o \
$(OBJECT_DIR)switchdriver_rpi.o \
$(OBJECT_DIR)switchdriver_sim.o \
######################################################################################
TELESCOPE_DRIVER_OBJECTS= \
$(OBJECT_DIR)telescopedriver.o \
$(OBJECT_DIR)telescopedriver_comm.o \
$(OBJECT_DIR)telescopedriver_lx200.o \
$(OBJECT_DIR)telescopedriver_Rigel.o \
$(OBJECT_DIR)telescopedriver_servo.o \
$(OBJECT_DIR)telescopedriver_sim.o \
$(OBJECT_DIR)lx200_com.o \
######################################################################################
SERIAL_OBJECTS= \
$(OBJECT_DIR)serialport.o \
$(OBJECT_DIR)usbmanager.o \
######################################################################################
TEST_OBJECTS= \
$(OBJECT_DIR)cameradriver_PhaseOne.o \
######################################################################################
# Camera Objects
IMAGEPROC_OBJECTS= \
$(OBJECT_DIR)imageprocess_orb.o \
CLIENT_OBJECTS= \
$(OBJECT_DIR)json_parse.o \
$(OBJECT_DIR)discoveryclient.o \
HELPER_OBJECTS= \
$(OBJECT_DIR)helper_functions.o \
######################################################################################
# Roll Off Roof Objects
ROR_OBJECTS= \
$(OBJECT_DIR)alpacadriver.o \
$(OBJECT_DIR)alpacadriverConnect.o \
$(OBJECT_DIR)alpacadriverSetup.o \
$(OBJECT_DIR)alpacadriver_helper.o \
$(OBJECT_DIR)alpacadriverLogging.o \
$(OBJECT_DIR)alpaca_discovery.o \
$(OBJECT_DIR)cpu_stats.o \
$(OBJECT_DIR)discoverythread.o \
$(OBJECT_DIR)domedriver.o \
$(OBJECT_DIR)domedriver_ror_rpi.o \
$(OBJECT_DIR)eventlogging.o \
$(OBJECT_DIR)HostNames.o \
$(OBJECT_DIR)JsonResponse.o \
$(OBJECT_DIR)linuxerrors.o \
$(OBJECT_DIR)managementdriver.o \
$(OBJECT_DIR)observatory_settings.o \
$(OBJECT_DIR)raspberrypi_relaylib.o \
######################################################################################
# CPP objects
IMU_OBJECTS= \
$(OBJECT_DIR)imu_lib.o \
$(OBJECT_DIR)i2c_bno055.o \
######################################################################################
#pragma mark make help
help:
#################################################################################
# The AlpacaPi project consists of two main parts, drivers and clients,
# There are 2 major variants that to be dealt with opencv4 and opencv
# The newer opencv4 variant only supports the C++ interface
# AlpacaPi was originally written with the C interface
# Once everything is converted to opencv4, the opencv options will go away
#
# Driver make options
# make dome Raspberry pi version to control dome using DC motor controller
#
# opencv4 only options
# make alpacapicv4 Driver for x86 linux
# make camerasim Camera simulator
# make simulator Several different simulators
# make picv4 Version for Raspberry Pi using OpenCV 4 or later
# opencv only options
# make alpacapi Driver for x86 linux
# make jetson Version to run on nvidia jetson board, this is an armv8
# make moonlite Driver for moonlite focusers ONLY
# make nocamera Build without the camera support
# make noopencv Camera driver for ZWO WITHOUT opencv
# make pi Version for Raspberry Pi
# make piqhy Camera driver for QHY cameras only for Raspberry-Pi
# make qsi Camera driver for QSI cameras
# make wx Version that uses the R-Pi sensor board
#
#
# Telescope drivers,
# As of May 2022, the telescope driver is still in development,
# There are several options that are in progress
# make tele Makes a version which speaks LX200 over a TCP/IP connection
# make rigel Makes a special version for a user that uses a rigel controller
# make eq6 A version to control eq6 style mounts
# make servo A telescope controller based on servo motors using LM628/629
#
# Miscellaneous
# make clean removes all binaries
# make help this message
#
# Client make options
# SkyTravel is an all in one client program, it has all of the controllers built in
# with full Alpaca Discovery support and generates a list of available devices
#
# make sky makes SkyTravel with openCV 3.3.1 or earlier
# make skysql same as sky but with SQL database support
#> make skycv4 makes SkyTravel with newer Versions after 3.3.1
#> make skycv4sql same as skycv4 with SQL database support
#
# Some of the clients can also be built separately
# make camera
# make domectrl
# make focuser
# make switch
#
# MACHINE_TYPE =$(MACHINE_TYPE)
# PLATFORM =$(PLATFORM)
# OPENCV_VERSION=$(OPENCV_VERSION)
# SQL_VERSION =$(SQL_VERSION)
# ATIK_PLATFORM =$(ATIK_PLATFORM)
#################################################################################
# Debug Makefile
# smate Build a version to run on a Stellarmate running smate OS
######################################################################################
#pragma mark make alpacapi C++ linux-x86
alpacapi : DEFINEFLAGS += -D_INCLUDE_MILLIS_
alpacapi : DEFINEFLAGS += -D_ENABLE_CAMERA_
alpacapi : DEFINEFLAGS += -D_ENABLE_ASI_
#alpacapi : DEFINEFLAGS += -D_ENABLE_ATIK_
alpacapi : DEFINEFLAGS += -D_ENABLE_CALIBRATION_
alpacapi : DEFINEFLAGS += -D_ENABLE_DISCOVERY_QUERRY_
#alpacapi : DEFINEFLAGS += -D_ENABLE_DOME_
alpacapi : DEFINEFLAGS += -D_ENABLE_FITS_
alpacapi : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_
alpacapi : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_ZWO_
#alpacapi : DEFINEFLAGS += -D_ENABLE_FLIR_
alpacapi : DEFINEFLAGS += -D_ENABLE_FOCUSER_
alpacapi : DEFINEFLAGS += -D_ENABLE_FOCUSER_MOONLITE_
#alpacapi : DEFINEFLAGS += -D_ENABLE_MULTICAM_
#alpacapi : DEFINEFLAGS += -D_ENABLE_OBSERVINGCONDITIONS_
#alpacapi : DEFINEFLAGS += -D_ENABLE_QHY_
alpacapi : DEFINEFLAGS += -D_ENABLE_ROTATOR_
alpacapi : DEFINEFLAGS += -D_ENABLE_ROTATOR_NITECRAWLER_
#alpacapi : DEFINEFLAGS += -D_ENABLE_SAFETYMONITOR_
#alpacapi : DEFINEFLAGS += -D_ENABLE_SWITCH_
#alpacapi : DEFINEFLAGS += -D_ENABLE_SLIT_TRACKER_
#alpacapi : DEFINEFLAGS += -D_ENABLE_TOUP_
alpacapi : DEFINEFLAGS += -D_USE_OPENCV_
#alpacapi : DEFINEFLAGS += -D_ENABLE_TELESCOPE_
#alpacapi : DEFINEFLAGS += -D_ENABLE_TELESCOPE_LX200_
alpacapi : DEFINEFLAGS += -D_ENABLE_CTRL_IMAGE_
alpacapi : DEFINEFLAGS += -D_ENABLE_LIVE_CONTROLLER_
alpacapi : \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(ASI_CAMERA_OBJECTS) \
$(OPENCV_LINK) \
$(ZWO_EFW_OBJECTS) \
-ludev \
-lusb-1.0 \
-lpthread \
-lcfitsio \
-o alpacapi
# -L$(ATIK_LIB_DIR)/ \
# -latikcameras \
# -lqhyccd \
######################################################################################
#pragma mark make alpacapicv4 C++ linux-x86
alpacapicv4 : DEFINEFLAGS += -D_INCLUDE_MILLIS_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_CAMERA_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_ASI_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_ATIK_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_CALIBRATION_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_DISCOVERY_QUERRY_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_DOME_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_FITS_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_ZWO_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_FLIR_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_FOCUSER_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_FOCUSER_MOONLITE_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_MULTICAM_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_OBSERVINGCONDITIONS_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_QHY_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_ROTATOR_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_ROTATOR_NITECRAWLER_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_SAFETYMONITOR_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_SWITCH_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_SLIT_TRACKER_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_TOUP_
alpacapicv4 : DEFINEFLAGS += -D_USE_OPENCV_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_
#alpacapicv4 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_LX200_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_CTRL_IMAGE_
alpacapicv4 : DEFINEFLAGS += -D_USE_OPENCV_CPP_
alpacapicv4 : DEFINEFLAGS += -D_ENABLE_LIVE_CONTROLLER_
alpacapicv4 : \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(OPENCV_LINK) \
$(ASI_CAMERA_OBJECTS) \
$(ZWO_EFW_OBJECTS) \
-ludev \
-lusb-1.0 \
-lpthread \
-lcfitsio \
-o alpacapi
# -L$(ATIK_LIB_DIR)/ \
# -latikcameras \
# -lqhyccd \
######################################################################################
#pragma mark make mulc
mulc : DEFINEFLAGS += -D_INCLUDE_MILLIS_
mulc : DEFINEFLAGS += -D_ENABLE_CAMERA_
mulc : DEFINEFLAGS += -D_ENABLE_ASI_
mulc : DEFINEFLAGS += -D_ENABLE_ATIK_
mulc : DEFINEFLAGS += -D_ENABLE_CALIBRATION_
mulc : DEFINEFLAGS += -D_ENABLE_DISCOVERY_QUERRY_
mulc : DEFINEFLAGS += -D_ENABLE_FITS_
mulc : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_
mulc : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_ZWO_
#mulc : DEFINEFLAGS += -D_ENABLE_FLIR_
mulc : DEFINEFLAGS += -D_ENABLE_FOCUSER_
mulc : DEFINEFLAGS += -D_ENABLE_FOCUSER_MOONLITE_
mulc : DEFINEFLAGS += -D_ENABLE_MULTICAM_
#mulc : DEFINEFLAGS += -D_ENABLE_QHY_
mulc : DEFINEFLAGS += -D_ENABLE_ROTATOR_
mulc : DEFINEFLAGS += -D_ENABLE_ROTATOR_NITECRAWLER_
#mulc : DEFINEFLAGS += -D_ENABLE_TOUP_
mulc : DEFINEFLAGS += -D_USE_OPENCV_
mulc : DEFINEFLAGS += -D_USE_OPENCV_CPP_
mulc : DEFINEFLAGS += -D_ENABLE_CTRL_IMAGE_
mulc : DEFINEFLAGS += -D_ENABLE_LIVE_CONTROLLER_
mulc : \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(OPENCV_LINK) \
$(ASI_CAMERA_OBJECTS) \
$(ZWO_EFW_OBJECTS) \
-L$(ATIK_LIB_DIR)/ \
-latikcameras \
-ludev \
-lusb-1.0 \
-lpthread \
-lcfitsio \
-o alpacapi
# -lqhyccd \
# -lSpinnaker_C \
######################################################################################
# make simulator several simulators
simulator : DEFINEFLAGS += -D_INCLUDE_MILLIS_
simulator : DEFINEFLAGS += -D_ENABLE_FITS_
simulator : DEFINEFLAGS += -D_ENABLE_DISCOVERY_QUERRY_
simulator : DEFINEFLAGS += -D_ENABLE_CTRL_IMAGE_
simulator : DEFINEFLAGS += -D_ENABLE_LIVE_CONTROLLER_
simulator : DEFINEFLAGS += -D_ENABLE_CALIBRATION_
simulator : DEFINEFLAGS += -D_ENABLE_CALIBRATION_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_CAMERA_
simulator : DEFINEFLAGS += -D_ENABLE_CAMERA_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_DOME_
simulator : DEFINEFLAGS += -D_ENABLE_DOME_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_
simulator : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_FOCUSER_
simulator : DEFINEFLAGS += -D_ENABLE_FOCUSER_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_OBSERVINGCONDITIONS_
simulator : DEFINEFLAGS += -D_ENABLE_OBSERVINGCONDITIONS_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_TELESCOPE_
simulator : DEFINEFLAGS += -D_ENABLE_TELESCOPE_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_ROTATOR_
simulator : DEFINEFLAGS += -D_ENABLE_ROTATOR_SIMULATOR_
simulator : DEFINEFLAGS += -D_ENABLE_SWITCH_
simulator : DEFINEFLAGS += -D_ENABLE_SWITCH_SIMULATOR_
simulator : DEFINEFLAGS += -D_USE_OPENCV_
simulator : DEFINEFLAGS += -D_USE_OPENCV_CPP_
simulator : \
$(DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(DOME_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(OBSCOND_DRIVER_OBJECTS) \
$(SWITCH_DRIVER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(CALIBRATION_DRIVER_OBJECTS) \
$(DOME_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(OBSCOND_DRIVER_OBJECTS) \
$(SWITCH_DRIVER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(SOCKET_OBJECTS) \
$(OPENCV_LINK) \
-lcfitsio \
-lpthread \
-o alpacasim
# -lwiringPi \
# -lusb-1.0 \
# -ludev \
######################################################################################
#pragma mark make moonlite
moonlite : DEFINEFLAGS += -D_INCLUDE_MILLIS_
moonlite : DEFINEFLAGS += -D_ENABLE_FOCUSER_
moonlite : DEFINEFLAGS += -D_ENABLE_FOCUSER_MOONLITE_
moonlite :
$(DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(SOCKET_OBJECTS) \
-ludev \
-lusb-1.0 \
-lpthread \
-o alpaca-moonlite
######################################################################################
#pragma mark make allcam
# this is primarily for development, all cameras are enabled
allcam : DEFINEFLAGS += -D_INCLUDE_MILLIS_
allcam : DEFINEFLAGS += -D_ENABLE_CAMERA_
allcam : DEFINEFLAGS += -D_ENABLE_ASI_
#allcam : DEFINEFLAGS += -D_ENABLE_ATIK_
#allcam : DEFINEFLAGS += -D_ENABLE_FLIR_
allcam : DEFINEFLAGS += -D_ENABLE_QHY_
allcam : DEFINEFLAGS += -D_ENABLE_SONY_
allcam : DEFINEFLAGS += -D_ENABLE_TOUP_
allcam : DEFINEFLAGS += -D_ENABLE_DISCOVERY_QUERRY_
allcam : DEFINEFLAGS += -D_ENABLE_FITS_
allcam : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_
allcam : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_ZWO_
allcam : DEFINEFLAGS += -D_USE_OPENCV_
allcam : DEFINEFLAGS += -D_USE_OPENCV_CPP_
allcam : DEFINEFLAGS += -D_ENABLE_CTRL_IMAGE_
#allcam : INCLUDES += -I$(SONY_INCLUDE_DIR)
allcam : DEFINEFLAGS += -D_ENABLE_LIVE_CONTROLLER_
allcam : \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(SOCKET_OBJECTS) \
$(OPENCV_LINK) \
-L$(ATIK_LIB_DIR)/ \
-L$(TOUP_LIB_DIR)/ \
$(ASI_CAMERA_OBJECTS) \
$(ZWO_EFW_OBJECTS) \
-latikcameras \
-ltoupcam \
-ludev \
-lusb-1.0 \
-lpthread \
-lcfitsio \
-lqhyccd \
-o alpacapi
# -lSpinnaker_C \
######################################################################################
#pragma mark make tele C++ linux-x86
tele : DEFINEFLAGS += -D_INCLUDE_MILLIS_
tele : DEFINEFLAGS += -D_ENABLE_ASI_
#tele : DEFINEFLAGS += -D_ENABLE_ATIK_
tele : DEFINEFLAGS += -D_ENABLE_CAMERA_
#tele : DEFINEFLAGS += -D_ENABLE_CALIBRATION_
#tele : DEFINEFLAGS += -D_ENABLE_DISCOVERY_QUERRY_
#tele : DEFINEFLAGS += -D_ENABLE_DOME_
#tele : DEFINEFLAGS += -D_ENABLE_DOME_ROR_
tele : DEFINEFLAGS += -D_ENABLE_FITS_
tele : DEFINEFLAGS += -D_ENABLE_FOCUSER_
tele : DEFINEFLAGS += -D_ENABLE_FOCUSER_MOONLITE_
tele : DEFINEFLAGS += -D_USE_OPENCV_
tele : DEFINEFLAGS += -D_ENABLE_TELESCOPE_
tele : DEFINEFLAGS += -D_ENABLE_TELESCOPE_LX200_
tele : DEFINEFLAGS += -D_ENABLE_LX200_COM_
tele : DEFINEFLAGS += -D_ENABLE_IMU_
tele : INCLUDES += -I$(SRC_IMU)
#tele : DEFINEFLAGS += -D_ENABLE_TELESCOPE_SKYWATCH_
tele : \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(IMU_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(IMU_OBJECTS) \
$(OPENCV_LINK) \
$(ASI_CAMERA_OBJECTS) \
-lusb-1.0 \
-lcfitsio \
-lpthread \
-o alpacapi-telescope
# -ludev \
######################################################################################
#pragma mark make telecv4 C++ linux-x86
telecv4 : DEFINEFLAGS += -D_INCLUDE_MILLIS_
telecv4 : DEFINEFLAGS += -D_ENABLE_CAMERA_
telecv4 : DEFINEFLAGS += -D_ENABLE_ASI_
telecv4 : DEFINEFLAGS += -D_ENABLE_FITS_
telecv4 : DEFINEFLAGS += -D_USE_OPENCV_
telecv4 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_
telecv4 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_LX200_
telecv4 : DEFINEFLAGS += -D_ENABLE_LX200_COM_
telecv4 : DEFINEFLAGS += -D_ENABLE_IMU_
telecv4 : DEFINEFLAGS += -D_USE_OPENCV_CPP_
telecv4 : INCLUDES += -I$(SRC_IMU)
#telecv4 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_SKYWATCH_
telecv4 : \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SOCKET_OBJECTS) \
$(IMU_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SOCKET_OBJECTS) \
$(IMU_OBJECTS) \
$(OPENCV_LINK) \
$(ASI_CAMERA_OBJECTS) \
-lusb-1.0 \
-lcfitsio \
-lpthread \
-o alpacapi-telescope
######################################################################################
#pragma mark make eq6
eq6 : DEFINEFLAGS += -D_INCLUDE_MILLIS_
eq6 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_
#eq6 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_LX200_
#eq6 : DEFINEFLAGS += -D_ENABLE_LX200_COM_
eq6 : DEFINEFLAGS += -D_ENABLE_TELESCOPE_SKYWATCH_
eq6 : \
$(DRIVER_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(IMU_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(TELESCOPE_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SOCKET_OBJECTS) \
$(IMU_OBJECTS) \
-ludev \
-lusb-1.0 \
-lpthread \
-o alpacapi-eq6
######################################################################################
#make newt16
#pragma mark Newt 16 C++ Raspberry pi
newt16 : DEFINEFLAGS += -D_INCLUDE_MILLIS_
newt16 : DEFINEFLAGS += -D_ENABLE_FOCUSER_
newt16 : DEFINEFLAGS += -D_ENABLE_FOCUSER_MOONLITE_
newt16 : DEFINEFLAGS += -D_ENABLE_ROTATOR_
newt16 : DEFINEFLAGS += -D_ENABLE_ROTATOR_NITECRAWLER_
newt16 : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_
newt16 : DEFINEFLAGS += -D_ENABLE_FILTERWHEEL_ZWO_
newt16 : DEFINEFLAGS += -D_ENABLE_CAMERA_
newt16 : DEFINEFLAGS += -D_ENABLE_FITS_
newt16 : DEFINEFLAGS += -D_ENABLE_DISCOVERY_QUERRY_
#newt16 : DEFINEFLAGS += -D_ENABLE_MULTICAM_
newt16 : DEFINEFLAGS += -D_ENABLE_ASI_
newt16 : DEFINEFLAGS += -D_USE_OPENCV_
newt16 : DEFINEFLAGS += -D_USE_OPENCV_CPP_
newt16 : DEFINEFLAGS += -D_ENABLE_JPEGLIB_
newt16 : DEFINEFLAGS += -D_ENABLE_SLIT_TRACKER_
newt16 : DEFINEFLAGS += -D_ENABLE_CTRL_IMAGE_
newt16 : DEFINEFLAGS += -D_ENABLE_LIVE_CONTROLLER_
newt16 : \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SLITTRACKER_DRIVER_OBJECTS) \
$(SOCKET_OBJECTS) \
$(LIVE_WINDOW_OBJECTS) \
$(LINK) \
$(DRIVER_OBJECTS) \
$(CAMERA_DRIVER_OBJECTS) \
$(FITLERWHEEL_DRIVER_OBJECTS) \
$(FOCUSER_DRIVER_OBJECTS) \
$(HELPER_OBJECTS) \
$(SERIAL_OBJECTS) \
$(SLITTRACKER_DRIVER_OBJECTS) \
$(SOCKET_OBJECTS) \