build("external/");
build("src/");
- cflags = (char *[]){CFCBS, NULL};
- compile("clean", CBS, NULL);
+ compile("clean", NULL);
load('x', "clean", "clean", NULL);
#define ROOT
#include "build.h"
-#define COLORS SRC "colors.c"
+#include "external/cbs/cbs.c"
+
#define FIND "/usr/bin/find"
-#define FONT SRC "font.c"
+#define RM "/bin/rm"
#define GENCOLORS SRC "colors/gencolors"
#define GENFONT SRC "font/genfont"
-#define RM "/bin/rm"
-
-#include "external/cbs/cbs.c"
+#define COLORS SRC "colors.c"
+#define FONT SRC "font.c"
int main(void) {
char *what, **whos, **regexes, ***rms;
void cbs(void) {
cflags = (char *[]){CFPIC, NULL};
compile(CBSSRC, NULL);
+
load(LIBTYPE, CBSLIB, CBSSRC, NULL);
}
build(NULL);
compile("gencolors", NULL);
+
load('x', "gencolors", "gencolors", NULL);
if (modified(COLORS, "gencolors.c") || modified(COLORS, "rgb.txt"))
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include <unistd.h>
#include "cbs.h"