Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=grape.git;a=commitdiff;h=3594a21a341c574295a2f7191c6a525656375a5f
commit 3594a21a341c574295a2f7191c6a525656375a5f Author: James Buren <[email protected]> Date: Sat Apr 10 20:52:49 2010 -0500 Makefile * add new rules for grape.ui diff --git a/Makefile b/Makefile index ece6220..902c3e2 100644 --- a/Makefile +++ b/Makefile @@ -6,22 +6,21 @@ CFLAGS += -Wall -Wextra # Toggle comment if you do or don't want debugging CFLAGS += -g -# Toggle comment if you do or don't want an embedded terminal -PACKAGES += vte -CFLAGS += -DHAS_TERM +CFLAGS += $(strip $(shell pkg-config --cflags vte gtksourceview-2.0)) +LDFLAGS += $(strip $(shell pkg-config --libs vte gtksourceview-2.0)) -PACKAGES += gtksourceview-2.0 +all: grape -CFLAGS += $(strip $(shell pkg-config --cflags $(PACKAGES))) -LDFLAGS += $(strip $(shell pkg-config --libs $(PACKAGES))) +ui.c: grape.ui + @echo const gchar grape_ui[] = \"\\ > $@ + @sed -e 's|"|\\"|g' -e 's|$$|\\n\\|' $< >> $@ + @echo \"\; >> $@ -all: grape +grape.o: grape.c ui.c + $(CC) $(CFLAGS) -c $< -o $@ grape: grape.o $(CC) $(LDFLAGS) $^ -o $@ -grape.o: grape.c - $(CC) $(CFLAGS) -c $< -o $@ - clean: $(RM) grape grape.o _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
