35 SRC += c2html.c |
35 SRC += c2html.c |
36 SRC += highlighter.c |
36 SRC += highlighter.c |
37 |
37 |
38 OBJ = $(SRC:%.c=build/%$(OBJ_EXT)) |
38 OBJ = $(SRC:%.c=build/%$(OBJ_EXT)) |
39 |
39 |
40 all: build/ucx build/$(BIN) |
40 all: build build/$(BIN) |
41 |
41 |
42 build/$(BIN): $(OBJ) |
42 build/$(BIN): $(OBJ) |
43 $(LD) -o $@ $^ $(LDFLAGS) |
43 $(LD) -o $@ $^ $(LDFLAGS) |
44 |
44 |
45 build/%$(OBJ_EXT): src/%.c |
45 build/%$(OBJ_EXT): src/%.c |
46 $(CC) -o $@ $(CFLAGS) -c $< |
46 $(CC) -o $@ $(CFLAGS) -c $< |
47 |
|
48 build/ucx: build |
|
49 $(MKDIR) $@ |
|
50 |
47 |
51 build: |
48 build: |
52 $(MKDIR) $@ |
49 $(MKDIR) $@ |
53 |
50 |
54 test: all |
51 test: all |