Skip to content

Commit ecdf6c2

Browse files
committed
$(srcdir) is different from @srcdir@, so it better have a different name
1 parent 292ae8f commit ecdf6c2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Makefile.in

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
PROGRAMS=dropbear dbclient dropbearkey dropbearconvert scp
55

6-
srcdir=@srcdir@/src
6+
src = @srcdir@/src
77

88
STATIC_LTC=libtomcrypt/libtomcrypt.a
99
STATIC_LTM=libtommath/libtommath.a
@@ -18,7 +18,7 @@ ifeq (@BUNDLED_LIBTOM@, 1)
1818
LIBTOM_LIBS=$(STATIC_LTC) $(STATIC_LTM)
1919
endif
2020

21-
OPTION_HEADERS = default_options_guard.h $(srcdir)/sysoptions.h
21+
OPTION_HEADERS = default_options_guard.h $(src)/sysoptions.h
2222
ifneq ($(wildcard @srcdir@/localoptions.h),)
2323
CPPFLAGS+=-DLOCALOPTIONS_H_EXISTS
2424
OPTION_HEADERS += @srcdir@/localoptions.h
@@ -107,7 +107,7 @@ AR=@AR@
107107
RANLIB=@RANLIB@
108108
STRIP=@STRIP@
109109
INSTALL=@INSTALL@
110-
CPPFLAGS+=-I$(srcdir) -I@abs_top_builddir@
110+
CPPFLAGS+=-I$(src) -I@abs_top_builddir@
111111
CFLAGS+=@CFLAGS@ @ZLIB_CFLAGS@
112112
LIBS+=@LIBS@ @ZLIB_LIBS@
113113
LDFLAGS=@LDFLAGS@
@@ -150,30 +150,30 @@ multi: dropbearmulti
150150
install-multi: inst_dropbearmulti
151151

152152
# for simplicity assume all source depends on all headers
153-
HEADERS=$(wildcard $(srcdir)/*.h *.h) $(OPTION_HEADERS)
153+
HEADERS=$(wildcard $(src)/*.h *.h) $(OPTION_HEADERS)
154154

155155
MULTI_CPPFLAGS = $(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
156156

157157
sep-obj multi-obj:
158158
mkdir -p $@
159159

160-
sep-obj/%.o: $(srcdir)/%.c $(HEADERS) | sep-obj
160+
sep-obj/%.o: $(src)/%.c $(HEADERS) | sep-obj
161161
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
162162

163-
fuzz/%.o: $(srcdir)/%.c $(HEADERS)
163+
fuzz/%.o: $(src)/%.c $(HEADERS)
164164
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
165165

166-
fuzz/%.o: $(srcdir)/../fuzz/%.c $(HEADERS)
166+
fuzz/%.o: $(src)/../fuzz/%.c $(HEADERS)
167167
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
168168

169-
multi-obj/%.o: $(srcdir)/%.c $(HEADERS) | multi-obj
169+
multi-obj/%.o: $(src)/%.c $(HEADERS) | multi-obj
170170
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(MULTI_CPPFLAGS) $< -o $@
171171

172172

173-
default_options_guard.h: $(srcdir)/default_options.h
173+
default_options_guard.h: $(src)/default_options.h
174174
@echo Creating $@
175175
@printf "/*\n > > > Do not edit this file (default_options_guard.h) < < <\nGenerated from "$^"\nLocal customisation goes in localoptions.h\n*/\n\n" > $@.tmp
176-
@$(srcdir)/ifndef_wrapper.sh < $^ >> $@.tmp
176+
@$(src)/ifndef_wrapper.sh < $^ >> $@.tmp
177177
mv $@.tmp $@
178178

179179
strip: $(PROGRAMS)
@@ -277,7 +277,7 @@ tidy:
277277
rm -f *~ *.gcov */*~
278278

279279
lint:
280-
cd $(srcdir); ./dropbear_lint.sh
280+
cd $(src); ./dropbear_lint.sh
281281

282282
check: lint
283283
$(MAKE) -C test

0 commit comments

Comments
 (0)