From 5c2f3f739c9fe7ccc41f41adcd9fe9e3745dbaf5 Mon Sep 17 00:00:00 2001 From: portix Date: Mon, 12 Jul 2010 23:48:32 +0200 Subject: init --- Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..3c03cf3c --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +CC = gcc +LIBS += gtk+-2.0 +LIBS += webkit-1.0 +FLAGS += -Wall +FLAGS += -pipe +FLAGS += `pkg-config --cflags --libs $(LIBS)` + +FLAGS +=--ansi +FLAGS +=-std=c99 +FLAGS +=-g +SOURCE = dwb.c +#OBJ = $(patsubst %.c, %.o, $(wildcard *.c)) +HDR = config.h +JAVASCRIPT = hints.js ../hintoptions.js +TARGET = dwb + +#%.o: %.c $(HDR) +# @echo "${CC} $<" +# @$(CC) $(FLAGS) $(DEBUG) -c -o $@ $< + +all: $(TARGET) + +#hints.h: $(JAVASCRIPT) +# @echo creating hints.h +# @cat ../hintoptions.js > hints.h +# @cat hints.js >> hints.h +# @sed -i 's/\\/\\\\/g' hints.h +# @sed -i 's/\"/\\\"/g' hints.h +# @sed -i 's/\s\s*/ /g' hints.h +# @sed -i 's/^\s*\/\/.*//' hints.h +# @sed -i '1s/^/#define HINTS \"/' hints.h +# @sed -i ':a;N;s/\n//;ta' hints.h +# @sed -i 's/$$/\"/' hints.h + +$(TARGET): $(SOURCE) $(HDR) + @$(CC) $(FLAGS) $(SOURCE) -o $(TARGET) + +debug: + @$(MAKE) -B DEBUG="-g" + +clean: + @echo cleaning + @rm -f $(OBJ) + @rm -f $(TARGET) + @rm -f config.h hints.h startpage.h + +.PHONY: clean all -- cgit v1.2.3