-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
87 lines (54 loc) · 1.78 KB
/
Copy pathMakefile
File metadata and controls
87 lines (54 loc) · 1.78 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
# Makefile for zlib, derived from Makefile.dj2.
# Modified for mingw32 by C. Spieler, 6/16/98.
# Updated for zlib 1.2.x by Christian Spieler and Cosmin Truta, Mar-2003.
# Last updated: Mar 2012.
# Tested under Cygwin and MinGW.
# Copyright (C) 1995-2003 Jean-loup Gailly.
# For conditions of distribution and use, see copyright notice in zlib.h
# To compile, or to compile and test, type from the top level zlib directory:
#
# make -fwin32/Makefile.gcc; make test testdll -fwin32/Makefile.gcc
#
# To use the asm code, type:
# cp contrib/asm?86/match.S ./match.S
# make LOC=-DASMV OBJA=match.o -fwin32/Makefile.gcc
#
# To install libz.a, zconf.h and zlib.h in the system directories, type:
#
# make install -fwin32/Makefile.gcc
#
# BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set.
#
# To install the shared lib, append SHARED_MODE=1 to the make command :
#
# make install -fwin32/Makefile.gcc SHARED_MODE=1
# Note:
# If the platform is *not* MinGW (e.g. it is Cygwin or UWIN),
# the DLL name should be changed from "zlib1.dll".
EXEC = SingleFrameMode
#
# Set to 1 if shared object needs to be installed
#
SHARED_MODE=0
COMP_INC1 = /usr/include/
COMP_INC2 = /usr/local/include/
COMP_LIB = /usr/local/lib/
#QHY_LIB = /usr/local/lib/libqhyccd.so
CXX = g++
CXXFLAGS = -Wall -Wsign-compare -std=c++11 -I. -I $(COMP_INC1) -I$(COMP_INC2)
#EXTRALIBS = -Wl,${QHY_LIB} -lusb-1.0 -pthread -lcfitsio
EXTRALIBS = -lqhyccd -lusb-1.0 -pthread -lcfitsio
CP = cp -f
OBJA = SingleFrameMode.o
all: $(EXEC)
.cpp.o:
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(EXEC): $(OBJA)
$(CXX) -o SingleFrameMode $(OBJA) $(EXTRALIBS)
install:
# $(CP) $(EXEC)
clean:
-$(RM) $(EXEC)
-$(RM) *.o
-$(RM) *~
-$(RM) *.orig