diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-24 21:30:02 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-24 21:30:02 +0200 |
commit | 6743d86ad219efaa281bf5e87b51cb744b9373ef (patch) | |
tree | 83fbcf6159bf64a5bcc8592a1f35b309c4ffe25e /config/Makefile | |
parent | 40458a5a090821ce355c8dd90f4472619e0c50eb (diff) |
add gtk guiconfig from linux kernel configsystem
Diffstat (limited to 'config/Makefile')
-rw-r--r-- | config/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/Makefile b/config/Makefile index 1f3143e34..86114f55f 100644 --- a/config/Makefile +++ b/config/Makefile @@ -39,12 +39,17 @@ endif endif endif +HOSTGTKLIBS = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` +HOSTGTKCFLAGS = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` + CONF_SRC =conf.c MCONF_SRC =mconf.c $(wildcard lxdialog/*.c) +GCONF_SRC =gconf.c SHARED_SRC=zconf.tab.c SHARED_DEPS:=lkc.h lkc_proto.h lkc_defs.h expr.h zconf.tab.h CONF_OBJS =$(patsubst %.c,%.o, $(CONF_SRC)) MCONF_OBJS=$(patsubst %.c,%.o, $(MCONF_SRC)) +GCONF_OBJS=$(patsubst %.c,%.o, $(GCONF_SRC)) SHARED_OBJS=$(patsubst %.c,%.o, $(SHARED_SRC)) conf: $(CONF_OBJS) $(SHARED_OBJS) @@ -53,12 +58,18 @@ conf: $(CONF_OBJS) $(SHARED_OBJS) mconf: $(MCONF_OBJS) $(SHARED_OBJS) $(HOSTCC) $(HOSTCFLAGS) $(NATIVE_LDFLAGS) $^ -o $@ $(LIBS) +gconf: $(GCONF_OBJS) $(SHARED_OBJS) + $(HOSTCC) $(HOSTCFLAGS) $(NATIVE_LDFLAGS) $^ -o $@ $(HOSTGTKLIBS) + $(CONF_OBJS): %.o : %.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@ $(MCONF_OBJS): %.o : %.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) $(HOSTNCURSES) -I. -c $< -o $@ +$(GCONF_OBJS): %.o : %.c $(SHARED_DEPS) + $(HOSTCC) $(HOSTCFLAGS) $(HOSTGTKCFLAGS) -DLKC_DIRECT_LINK -I. -c $< -o $@ + glob.o: glob.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) -I. -c glob.c -o $@ |