CSS and home page
This commit is contained in:
14
build.c
14
build.c
@ -4,6 +4,8 @@
|
||||
|
||||
char *prog = NULL;
|
||||
|
||||
#define DEBUG 1
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
rebuild_self(argc, argv, "cc", "-o", "build", "build.c");
|
||||
@ -13,14 +15,22 @@ int main(int argc, char ** argv)
|
||||
if (strcmp(cmd, "make") == 0) {
|
||||
RULE("./aboba", "./main.c", "./mongoose.o", "./gpp1") {
|
||||
RULE("./mongoose.o", "./mongoose/mongoose.c") {
|
||||
CMD("cc", "-c", "-o", "./mongoose.o", "./mongoose/mongoose.c");
|
||||
#if DEBUG
|
||||
CMD("cc", "-ggdb", "-c", "-o", "./mongoose.o", "./mongoose/mongoose.c");
|
||||
#else
|
||||
CMD("cc", "-c", "-o", "./mongoose.o", "./mongoose/mongoose.c");
|
||||
#endif
|
||||
}
|
||||
|
||||
RULE("./gpp1", "./gpp/gpp.c") {
|
||||
CMD("cc", "-DHAVE_STRDUP", "-DHAVE_FNMATCH_H", "-o", "gpp1", "gpp/gpp.c");
|
||||
}
|
||||
|
||||
CMD("cc", "-o", "./aboba", "./main.c", "./mongoose.o");
|
||||
#if DEBUG
|
||||
CMD("cc", "-ggdb", "-o", "./aboba", "./main.c", "./mongoose.o");
|
||||
#else
|
||||
CMD("cc", "-o", "./aboba", "./main.c", "./mongoose.o");
|
||||
#endif
|
||||
}
|
||||
} else if (strcmp(cmd, "clean") == 0) {
|
||||
remove1("./build");
|
||||
|
Reference in New Issue
Block a user