aboutsummaryrefslogtreecommitdiff
path: root/scripts/config/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/config/Makefile')
-rw-r--r--scripts/config/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/scripts/config/Makefile b/scripts/config/Makefile
index c0b5b9d35..3c4669f8c 100644
--- a/scripts/config/Makefile
+++ b/scripts/config/Makefile
@@ -9,7 +9,11 @@ include $(top_builddir)/Rules.mak
9 9
10all: ncurses conf mconf 10all: ncurses conf mconf
11 11
12ifeq ($(shell uname),SunOS)
13LIBS = -lcurses
14else
12LIBS = -lncurses 15LIBS = -lncurses
16endif
13ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) 17ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h))
14 HOSTNCURSES += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" 18 HOSTNCURSES += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"
15else 19else
@@ -32,14 +36,17 @@ endif
32endif 36endif
33endif 37endif
34 38
35CONF_SRC =conf.c 39CONF_SRC = conf.c
36MCONF_SRC =mconf.c checklist.c menubox.c textbox.c yesno.c inputbox.c util.c msgbox.c 40MCONF_SRC = mconf.c
37SHARED_SRC=zconf.tab.c 41LXD_SRC = lxdialog/checklist.c lxdialog/menubox.c lxdialog/textbox.c \
38SHARED_DEPS:=$(srcdir)/lkc.h $(srcdir)/lkc_proto.h \ 42 lxdialog/yesno.c lxdialog/inputbox.c lxdialog/util.c \
39 lkc_defs.h $(srcdir)/expr.h zconf.tab.h 43 lxdialog/msgbox.c
40CONF_OBJS =$(patsubst %.c,%.o, $(CONF_SRC)) 44SHARED_SRC = zconf.tab.c
41MCONF_OBJS=$(patsubst %.c,%.o, $(MCONF_SRC)) 45SHARED_DEPS := $(srcdir)/lkc.h $(srcdir)/lkc_proto.h \
42SHARED_OBJS=$(patsubst %.c,%.o, $(SHARED_SRC)) 46 lkc_defs.h $(srcdir)/expr.h zconf.tab.h
47CONF_OBJS = $(patsubst %.c,%.o, $(CONF_SRC))
48MCONF_OBJS = $(patsubst %.c,%.o, $(MCONF_SRC) $(LXD_SRC))
49SHARED_OBJS = $(patsubst %.c,%.o, $(SHARED_SRC))
43 50
44conf: $(CONF_OBJS) $(SHARED_OBJS) 51conf: $(CONF_OBJS) $(SHARED_OBJS)
45 $(HOSTCC) $(NATIVE_LDFLAGS) $^ -o $@ 52 $(HOSTCC) $(NATIVE_LDFLAGS) $^ -o $@