Makefile

changeset 62
3fff4c364ffc
parent 61
47a5fc33590a
child 63
12d8f0f6ef06
equal deleted inserted replaced
61:47a5fc33590a 62:3fff4c364ffc
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

mercurial