summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorwbx <wbx@netbsd-50-amd64.foo.bar>2010-02-09 00:17:46 +0100
committerwbx <wbx@netbsd-50-amd64.foo.bar>2010-02-09 00:17:46 +0100
commita619c16fa72c3c15a198b452e512a08f18251930 (patch)
tree509129b67e1fff93dfb6add89d262afbfe5de3ad /config
parent254ae86e16cddf282b36c0593148e24151ce1f96 (diff)
add support for netbsd. just minor fixes needed.
Diffstat (limited to 'config')
-rw-r--r--config/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/Makefile b/config/Makefile
index 97a8f3a3a..1f3143e34 100644
--- a/config/Makefile
+++ b/config/Makefile
@@ -31,6 +31,7 @@ ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h))
HOSTNCURSES+= -DCURSES_LOC="<ncurses.h>"
else
HOSTNCURSES+= -DCURSES_LOC="<curses.h>"
+LIBS= -lcurses
endif
endif
endif
@@ -47,16 +48,16 @@ MCONF_OBJS=$(patsubst %.c,%.o, $(MCONF_SRC))
SHARED_OBJS=$(patsubst %.c,%.o, $(SHARED_SRC))
conf: $(CONF_OBJS) $(SHARED_OBJS)
- $(HOSTCC) -DKBUILD_NO_NLS $(NATIVE_LDFLAGS) $^ -o $@
+ $(HOSTCC) $(HOSTCFLAGS) $(NATIVE_LDFLAGS) $^ -o $@
mconf: $(MCONF_OBJS) $(SHARED_OBJS)
- $(HOSTCC) -DKBUILD_NO_NLS $(NATIVE_LDFLAGS) $^ -o $@ $(LIBS)
+ $(HOSTCC) $(HOSTCFLAGS) $(NATIVE_LDFLAGS) $^ -o $@ $(LIBS)
$(CONF_OBJS): %.o : %.c $(SHARED_DEPS)
- $(HOSTCC) -DKBUILD_NO_NLS $(HOSTCFLAGS) -I. -c $< -o $@
+ $(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@
$(MCONF_OBJS): %.o : %.c $(SHARED_DEPS)
- $(HOSTCC) -DKBUILD_NO_NLS $(HOSTCFLAGS) $(HOSTNCURSES) -I. -c $< -o $@
+ $(HOSTCC) $(HOSTCFLAGS) $(HOSTNCURSES) -I. -c $< -o $@
glob.o: glob.c $(SHARED_DEPS)
$(HOSTCC) $(HOSTCFLAGS) -I. -c glob.c -o $@