32 include $(CONF).mk |
32 include $(CONF).mk |
33 |
33 |
34 SRC = frontend.c |
34 SRC = frontend.c |
35 SRC += c2html.c |
35 SRC += c2html.c |
36 SRC += highlighter.c |
36 SRC += highlighter.c |
37 SRC += ucx/allocator.c |
|
38 SRC += ucx/buffer.c |
|
39 SRC += ucx/list.c |
|
40 SRC += ucx/string.c |
|
41 SRC += ucx/utils.c |
|
42 |
37 |
43 OBJ = $(SRC:%.c=build/%$(OBJ_EXT)) |
38 OBJ = $(SRC:%.c=build/%$(OBJ_EXT)) |
44 |
39 |
45 all: build/ucx build/$(BIN) |
40 all: build build/$(BIN) |
46 |
41 |
47 build/$(BIN): $(OBJ) |
42 build/$(BIN): $(OBJ) |
48 $(LD) -o $@ $^ $(LDFLAGS) |
43 $(LD) -o $@ $^ $(LDFLAGS) |
49 |
44 |
50 build/%$(OBJ_EXT): src/%.c |
45 build/%$(OBJ_EXT): src/%.c |
51 $(CC) -o $@ $(CFLAGS) -c $< |
46 $(CC) -o $@ $(CFLAGS) -c $< |
52 |
47 |
53 build/ucx: build |
|
54 $(MKDIR) $@ |
|
55 |
|
56 build: |
48 build: |
57 $(MKDIR) $@ |
49 $(MKDIR) $@ |
58 |
50 |
59 test: all |
51 test: all |
60 ./build/$(BIN) test/ctestfile.c -o build/ctest.html \ |
52 ./build/$(BIN) test/ctestfile.c -o build/ctest.html \ |
63 -H test/jheader.html -F test/footer.html |
55 -H test/jheader.html -F test/footer.html |
64 ./build/$(BIN) test/bigtestfile.c -o build/bigtest.html \ |
56 ./build/$(BIN) test/bigtestfile.c -o build/bigtest.html \ |
65 -H test/header.html -F test/footer.html |
57 -H test/header.html -F test/footer.html |
66 ./build/$(BIN) -p test/plain.csp -o build/plain.html \ |
58 ./build/$(BIN) -p test/plain.csp -o build/plain.html \ |
67 -H test/header.html -F test/footer.html |
59 -H test/header.html -F test/footer.html |
68 |
60 diff build/ctest.html test/gs/ctest.html && \ |
69 test-v2-regression: test |
61 diff build/javatest.html test/gs/javatest.html && \ |
70 diff build/ctest.html test/v2-regression/ctest.html && \ |
62 diff build/bigtest.html test/gs/bigtest.html && \ |
71 diff build/javatest.html test/v2-regression/javatest.html && \ |
63 diff build/plain.html test/gs/plain.html |
72 diff build/bigtest.html test/v2-regression/bigtest.html && \ |
|
73 diff build/plain.html test/v2-regression/plain.html |
|
74 |
64 |
75 clean: |
65 clean: |
76 $(RM) $(RMFLAGS) build |
66 $(RM) $(RMFLAGS) build |