diff options
author | portix <portix@gmx.net> | 2010-07-12 23:48:32 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2010-07-12 23:48:32 +0200 |
commit | 5c2f3f739c9fe7ccc41f41adcd9fe9e3745dbaf5 (patch) | |
tree | db7ddf74f8e19bc025e405fba45081c548c80930 /Makefile | |
download | dwb-5c2f3f739c9fe7ccc41f41adcd9fe9e3745dbaf5.zip |
init
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
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 |