aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/config/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/config/Makefile b/scripts/config/Makefile
index c1cda3e2a..8983ee5f3 100644
--- a/scripts/config/Makefile
+++ b/scripts/config/Makefile
@@ -50,22 +50,20 @@ MCONF_OBJS = $(patsubst %.c,%.o, $(MCONF_SRC) $(LXD_SRC))
50SHARED_OBJS = $(patsubst %.c,%.o, $(SHARED_SRC)) 50SHARED_OBJS = $(patsubst %.c,%.o, $(SHARED_SRC))
51 51
52conf: $(CONF_OBJS) $(SHARED_OBJS) 52conf: $(CONF_OBJS) $(SHARED_OBJS)
53 $(SECHO) " "HOSTCC $@ ; true 53 $(do_link.h)
54 $(Q)$(HOSTCC) $(NATIVE_LDFLAGS) $^ -o $@
55 54
56mconf: $(MCONF_OBJS) $(SHARED_OBJS) 55mconf: $(MCONF_OBJS) $(SHARED_OBJS)
57 $(SECHO) " "HOSTCC $@ ; true 56 $(do_link.h) $(LIBS)
58 $(Q)$(HOSTCC) $(NATIVE_LDFLAGS) $^ -o $@ $(LIBS)
59 57
60$(CONF_OBJS): %.o : $(srcdir)/%.c $(SHARED_DEPS) 58$(CONF_OBJS): %.o : $(srcdir)/%.c $(SHARED_DEPS)
61 $(compile.h) -I. 59 $(compile.h) -I.
62 60
63$(MCONF_OBJS): %.o : $(srcdir)/%.c $(SHARED_DEPS) 61$(MCONF_OBJS): %.o : $(srcdir)/%.c $(SHARED_DEPS)
64 @[ -d $(@D) ] || mkdir -v $(@D) 62 @[ -d $(@D) ] || mkdir $(@D)
65 $(compile.h) $(HOSTNCURSES) -I. 63 $(compile.h) $(HOSTNCURSES) -I.
66 64
67lkc_defs.h: $(srcdir)/lkc_proto.h 65lkc_defs.h: $(srcdir)/lkc_proto.h
68 @sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' 66 @$(SED) < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
69 67
70### 68###
71# The following requires flex/bison 69# The following requires flex/bison