comparison Makefile @ 18:1e39a251cbe9

Use libtecla for interactive input
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Thu, 24 Aug 2017 13:10:56 +0200
parents a08ef0674d8e
children 5c6155c8e9b6
comparison
equal deleted inserted replaced
17:a08ef0674d8e 18:1e39a251cbe9
80 HAVE_ARC4RANDOM ?= 0 80 HAVE_ARC4RANDOM ?= 0
81 HAVE_ASPRINTF ?= 1 81 HAVE_ASPRINTF ?= 1
82 HAVE_ERR_H ?= 1 82 HAVE_ERR_H ?= 1
83 HAVE_GETRANDOM ?= 0 83 HAVE_GETRANDOM ?= 0
84 HAVE_SYS_QUEUE_H ?= 0 84 HAVE_SYS_QUEUE_H ?= 0
85 HAVE_READPASSPHRASE_H ?= 0
86 HAVE_SETPROGNAME ?= 0 85 HAVE_SETPROGNAME ?= 0
87 HAVE_SYS_TREE_H ?= 0 86 HAVE_SYS_TREE_H ?= 0
88 else ifneq ($(findstring $(OS_NAME),FreeBSD DragonFly),) 87 else ifneq ($(findstring $(OS_NAME),FreeBSD DragonFly),)
89 HAVE_ARC4RANDOM ?= 1 88 HAVE_ARC4RANDOM ?= 1
90 HAVE_ASPRINTF ?= 1 89 HAVE_ASPRINTF ?= 1
91 HAVE_ERR_H ?= 1 90 HAVE_ERR_H ?= 1
92 HAVE_GETRANDOM ?= 0 91 HAVE_GETRANDOM ?= 0
93 HAVE_SYS_QUEUE_H ?= 1 92 HAVE_SYS_QUEUE_H ?= 1
94 HAVE_READPASSPHRASE_H ?= 1
95 HAVE_SETPROGNAME ?= 1 93 HAVE_SETPROGNAME ?= 1
96 HAVE_SYS_TREE_H ?= 1 94 HAVE_SYS_TREE_H ?= 1
97 else ifeq ($(OS_NAME),NetBSD) 95 else ifeq ($(OS_NAME),NetBSD)
98 HAVE_ARC4RANDOM ?= 1 96 HAVE_ARC4RANDOM ?= 1
99 HAVE_ASPRINTF ?= 1 97 HAVE_ASPRINTF ?= 1
100 HAVE_ERR_H ?= 1 98 HAVE_ERR_H ?= 1
101 HAVE_GETRANDOM ?= 0 99 HAVE_GETRANDOM ?= 0
102 HAVE_SYS_QUEUE_H ?= 1 100 HAVE_SYS_QUEUE_H ?= 1
103 HAVE_READPASSPHRASE_H ?= 0
104 HAVE_SYS_TREE_H ?= 1 101 HAVE_SYS_TREE_H ?= 1
105 HAVE_SETPROGNAME ?= 1 102 HAVE_SETPROGNAME ?= 1
106 else ifeq ($(OS_NAME),OpenBSD) 103 else ifeq ($(OS_NAME),OpenBSD)
107 HAVE_ARC4RANDOM ?= 1 104 HAVE_ARC4RANDOM ?= 1
108 HAVE_ASPRINTF ?= 1 105 HAVE_ASPRINTF ?= 1
109 HAVE_ERR_H ?= 1 106 HAVE_ERR_H ?= 1
110 HAVE_GETRANDOM ?= 0 107 HAVE_GETRANDOM ?= 0
111 HAVE_SYS_QUEUE_H ?= 1 108 HAVE_SYS_QUEUE_H ?= 1
112 HAVE_READPASSPHRASE_H ?= 1
113 HAVE_SYS_TREE_H ?= 1 109 HAVE_SYS_TREE_H ?= 1
114 HAVE_SETPROGNAME ?= 1 110 HAVE_SETPROGNAME ?= 1
115 else ifeq ($(OS_NAME),SunOS) 111 else ifeq ($(OS_NAME),SunOS)
116 ifeq ($(OS_RELEASE),5.10) 112 ifeq ($(OS_RELEASE),5.10)
117 HAVE_ARC4RANDOM ?= 0 113 HAVE_ARC4RANDOM ?= 0
123 HAVE_ASPRINTF ?= 1 119 HAVE_ASPRINTF ?= 1
124 HAVE_ERR_H ?= 1 120 HAVE_ERR_H ?= 1
125 HAVE_GETRANDOM ?= 1 121 HAVE_GETRANDOM ?= 1
126 endif 122 endif
127 HAVE_SYS_QUEUE_H ?= 0 123 HAVE_SYS_QUEUE_H ?= 0
128 HAVE_READPASSPHRASE_H ?= 0
129 HAVE_SYS_TREE_H ?= 0 124 HAVE_SYS_TREE_H ?= 0
130 HAVE_SETPROGNAME ?= 0 125 HAVE_SETPROGNAME ?= 0
131 else 126 else
132 HAVE_ARC4RANDOM ?= 0 127 HAVE_ARC4RANDOM ?= 0
133 HAVE_ASPRINTF ?= 0 128 HAVE_ASPRINTF ?= 0
134 HAVE_ERR_H ?= 0 129 HAVE_ERR_H ?= 0
135 HAVE_GETRANDOM ?= 0 130 HAVE_GETRANDOM ?= 0
136 HAVE_SYS_QUEUE_H ?= 0 131 HAVE_SYS_QUEUE_H ?= 0
137 HAVE_READPASSPHRASE_H ?= 0
138 HAVE_SETPROGNAME ?= 0 132 HAVE_SETPROGNAME ?= 0
139 HAVE_SYS_TREE_H ?= 0 133 HAVE_SYS_TREE_H ?= 0
140 endif 134 endif
141 135
142 OBJS = cmd.o \ 136 OBJS = cmd.o \
155 149
156 all: $(PACKAGE) $(MANPAGES) 150 all: $(PACKAGE) $(MANPAGES)
157 151
158 XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \ 152 XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \
159 -DVERSION=\"$(VERSION)\" 153 -DVERSION=\"$(VERSION)\"
160 LDLIBS = -lpws -lnettle 154 LDLIBS = -ltecla -lcurses -lpws -lnettle
161 ifeq ($(HAVE_ASPRINTF),1) 155 ifeq ($(HAVE_ASPRINTF),1)
162 XCPPFLAGS += -DHAVE_ASPRINTF 156 XCPPFLAGS += -DHAVE_ASPRINTF
163 else 157 else
164 OBJS += compat/asprintf.o 158 OBJS += compat/asprintf.o
165 endif 159 endif
174 endif 168 endif
175 ifeq ($(HAVE_ERR_H),1) 169 ifeq ($(HAVE_ERR_H),1)
176 XCPPFLAGS += -DHAVE_ERR_H 170 XCPPFLAGS += -DHAVE_ERR_H
177 else 171 else
178 OBJS += compat/err.o 172 OBJS += compat/err.o
179 endif
180 ifeq ($(HAVE_READPASSPHRASE_H),1)
181 XCPPFLAGS += -DHAVE_READPASSPHRASE_H
182 else
183 OBJS += compat/readpassphrase.o
184 endif 173 endif
185 ifeq ($(HAVE_SETPROGNAME),1) 174 ifeq ($(HAVE_SETPROGNAME),1)
186 XCPPFLAGS += -DHAVE_SETPROGNAME 175 XCPPFLAGS += -DHAVE_SETPROGNAME
187 else 176 else
188 OBJS += compat/setprogname.o 177 OBJS += compat/setprogname.o