summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2010-07-29 18:31:26 +0200
committerportix <portix@gmx.net>2010-07-29 18:31:26 +0200
commit1369e1d1e7d1c91588fc8fa8fab433d11a3de3f4 (patch)
tree7389fb4b5443302bca85e757a91130a59a7d53d1 /src/Makefile
parent5c0d76f1cabd1871a3865504d140d4c7f22f4dd0 (diff)
downloaddwb-1369e1d1e7d1c91588fc8fa8fab433d11a3de3f4.zip
add hints
--HG-- branch : entry_per_view
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 00000000..1bfd7433
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,45 @@
+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
+#OBJ = $(patsubst %.c, %.o, $(wildcard *.c))
+SOURCE = $(wildcard *.c)
+HDR = config.h
+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) $(DEBUG) -o $(TARGET)
+
+debug:
+ @$(MAKE) -B DEBUG="-g" TARGET="dwb-debug"
+
+clean:
+ @echo cleaning
+ @rm -f $(OBJ)
+ @rm -f $(TARGET)
+ @rm -f config.h hints.h startpage.h
+
+.PHONY: clean all