comparison Makefile.inc @ 424:aacd4ad3c4ff

Fix endianchk build when Makefile.inc is being included from parent project and called from other directory.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Mar 2016 22:42:30 +0200
parents 83fe3a3dcb20
children c3f474e59bc1
comparison
equal deleted inserted replaced
423:83fe3a3dcb20 424:aacd4ad3c4ff
38 @$(RANLIB) $@ 38 @$(RANLIB) $@
39 39
40 ## 40 ##
41 ## Generate endian check and config.h 41 ## Generate endian check and config.h
42 ## 42 ##
43 $(ENDIANCHK_BIN): $(THLIBS)endianchk.c 43 $(ENDIANCHK_BIN): $(THLIBS)endianchk.c $(BINPATH) $(OBJPATH)
44 @echo " CC $@" 44 @echo " CC $@"
45 @$(CC) $(CFLAGS) -o $@ $+ 45 @$(CC) $(CFLAGS) -o $@ $<
46 46
47 config.h: $(ENDIANCHK_BIN) 47 config.h: $(ENDIANCHK_BIN)
48 $(ENDIANCHK_BIN) > $@ 48 $(ENDIANCHK_BIN) > $@
49 49
50 50