-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
41 lines (33 loc) · 869 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <stdlib.h>
#include "ekam.h"
// clang-format off
#define BUILDDIR "build"
#define SRCDIR "src"
#define HEADERDIR "include"
#define CC "gcc"
#define CFLAGS " -O2"
#include "builders/basic.h"
#include "builders/c.h"
int
main(int argc, char **argv)
{
INIT_EKAM();
DECLARE_COBJ("safealloc");
DECLARE_COBJ("table");
DECLARE_COBJ("graph");
DECLARE_COBJ("build");
DECLARE_COBJ("ekam");
DECLARE_ID("main.c");
DECLARE("build/main");
BUILD_COBJ("safealloc");
BUILD_COBJ("table");
BUILD_COBJ("build");
BUILD_COBJ("graph");
BUILD_COBJ("ekam");
D("build/main",
BUILD_C("build/main") "main.c build/graph.o build/safealloc.o build/table.o build/build.o build/ekam.o",
"main.c", DEP_COBJ("graph"), DEP_COBJ("safealloc"), DEP_COBJ("table"), DEP_COBJ("build"), DEP_COBJ("ekam"));
system("mkdir -p build");
BUILD_TARGET("build/main");
FREE_EKAM();
}