diff options
Diffstat (limited to 'scripts/config/Makefile')
-rw-r--r-- | scripts/config/Makefile | 23 |
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 | ||
10 | all: ncurses conf mconf | 10 | all: ncurses conf mconf |
11 | 11 | ||
12 | ifeq ($(shell uname),SunOS) | ||
13 | LIBS = -lcurses | ||
14 | else | ||
12 | LIBS = -lncurses | 15 | LIBS = -lncurses |
16 | endif | ||
13 | ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) | 17 | ifeq (/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>" |
15 | else | 19 | else |
@@ -32,14 +36,17 @@ endif | |||
32 | endif | 36 | endif |
33 | endif | 37 | endif |
34 | 38 | ||
35 | CONF_SRC =conf.c | 39 | CONF_SRC = conf.c |
36 | MCONF_SRC =mconf.c checklist.c menubox.c textbox.c yesno.c inputbox.c util.c msgbox.c | 40 | MCONF_SRC = mconf.c |
37 | SHARED_SRC=zconf.tab.c | 41 | LXD_SRC = lxdialog/checklist.c lxdialog/menubox.c lxdialog/textbox.c \ |
38 | SHARED_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 |
40 | CONF_OBJS =$(patsubst %.c,%.o, $(CONF_SRC)) | 44 | SHARED_SRC = zconf.tab.c |
41 | MCONF_OBJS=$(patsubst %.c,%.o, $(MCONF_SRC)) | 45 | SHARED_DEPS := $(srcdir)/lkc.h $(srcdir)/lkc_proto.h \ |
42 | SHARED_OBJS=$(patsubst %.c,%.o, $(SHARED_SRC)) | 46 | lkc_defs.h $(srcdir)/expr.h zconf.tab.h |
47 | CONF_OBJS = $(patsubst %.c,%.o, $(CONF_SRC)) | ||
48 | MCONF_OBJS = $(patsubst %.c,%.o, $(MCONF_SRC) $(LXD_SRC)) | ||
49 | SHARED_OBJS = $(patsubst %.c,%.o, $(SHARED_SRC)) | ||
43 | 50 | ||
44 | conf: $(CONF_OBJS) $(SHARED_OBJS) | 51 | conf: $(CONF_OBJS) $(SHARED_OBJS) |
45 | $(HOSTCC) $(NATIVE_LDFLAGS) $^ -o $@ | 52 | $(HOSTCC) $(NATIVE_LDFLAGS) $^ -o $@ |