From: Daniel Carl Date: Thu, 18 Jul 2013 00:01:17 +0000 (+0200) Subject: Replaced the confg.h by config.def.h file. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=4caf68bdb6694ae8fba60df16244374d607667a0;p=vimb.git Replaced the confg.h by config.def.h file. --- diff --git a/.gitignore b/.gitignore index 2e798c2..e92aab6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ vimb_dbg *.tar.gz doc/*.1 src/hints.js.h +src/config.h diff --git a/Makefile b/Makefile index 40cdebf..5358867 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,10 @@ $(TARGET): $(OBJ) @echo "$(CC) $@" @$(CC) $(OBJ) -o $(TARGET) $(LDFLAGS) +src/config.h: src/config.def.h + @echo create $@ from src/config.def.h + @cp src/config.def.h $@ + %.o: %.c %.h src/config.h @echo "${CC} $<" @$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) diff --git a/src/config.def.h b/src/config.def.h new file mode 100644 index 0000000..f6645e0 --- /dev/null +++ b/src/config.def.h @@ -0,0 +1,32 @@ +/** + * vimb - a webkit based vim like browser. + * + * Copyright (C) 2012-2013 Daniel Carl + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see http://www.gnu.org/licenses/. + */ + +#ifndef _CONFIG_H +#define _CONFIG_H + +/* time in seconds after that message will be removed from inputbox if the + * message where only temporary */ +#define MESSAGE_TIMEOUT 5 + +#define SETTING_MAX_CONNS 25 +#define SETTING_MAX_CONNS_PER_HOST 5 + +#define MAXIMUM_HINTS 500 + +#endif /* end of include guard: _CONFIG_H */ diff --git a/src/config.h b/src/config.h deleted file mode 100644 index f6645e0..0000000 --- a/src/config.h +++ /dev/null @@ -1,32 +0,0 @@ -/** - * vimb - a webkit based vim like browser. - * - * Copyright (C) 2012-2013 Daniel Carl - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/. - */ - -#ifndef _CONFIG_H -#define _CONFIG_H - -/* time in seconds after that message will be removed from inputbox if the - * message where only temporary */ -#define MESSAGE_TIMEOUT 5 - -#define SETTING_MAX_CONNS 25 -#define SETTING_MAX_CONNS_PER_HOST 5 - -#define MAXIMUM_HINTS 500 - -#endif /* end of include guard: _CONFIG_H */