34 |
34 |
35 SRC = c2html.c |
35 SRC = c2html.c |
36 SRC += codegens.c |
36 SRC += codegens.c |
37 SRC += ccodegen.c |
37 SRC += ccodegen.c |
38 SRC += javacodegen.c |
38 SRC += javacodegen.c |
|
39 SRC += ucx/allocator.c |
|
40 SRC += ucx/buffer.c |
|
41 SRC += ucx/list.c |
|
42 SRC += ucx/string.c |
|
43 SRC += ucx/utils.c |
39 |
44 |
40 OBJ = $(SRC:%.c=build/%$(OBJ_EXT)) |
45 OBJ = $(SRC:%.c=build/%$(OBJ_EXT)) |
41 |
46 |
42 all: build build/$(BIN) |
47 all: build/ucx build/$(BIN) |
43 |
48 |
44 build/$(BIN): $(OBJ) |
49 build/$(BIN): $(OBJ) |
45 $(LD) -o $@ $^ $(LDFLAGS) |
50 $(LD) -o $@ $^ $(LDFLAGS) |
46 |
51 |
47 build/%$(OBJ_EXT): src/%.c |
52 build/%$(OBJ_EXT): src/%.c |
48 $(CC) -o $@ $(CFLAGS) -c $< |
53 $(CC) -o $@ $(CFLAGS) -c $< |
49 |
54 |
|
55 build/ucx: build |
|
56 $(MKDIR) $@ |
|
57 |
50 build: |
58 build: |
51 $(MKDIR) build |
59 $(MKDIR) $@ |
52 |
60 |
53 test: build/$(BIN) |
61 test: build/$(BIN) |
54 ./build/$(BIN) test/ctestfile.c -o build/ctest.html \ |
62 ./build/$(BIN) test/ctestfile.c -o build/ctest.html \ |
55 -H test/header.html -F test/footer.html |
63 -H test/header.html -F test/footer.html |
56 ./build/$(BIN) -j test/javatestfile.java -o build/javatest.html \ |
64 ./build/$(BIN) -j test/javatestfile.java -o build/javatest.html \ |