src/Makefile

changeset 21
537aec525835
parent 0
e78e463e1aa9
child 23
f44a185b678b
equal deleted inserted replaced
20:ebbf0776c1bc 21:537aec525835
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 include ../conf.mk 29 include ../conf.mk
30 30
31 DST = ../build 31 SRC = c2html.c
32 SRC += codegens.c
33 SRC += ccodegen.c
34 SRC += javacodegen.c
32 35
33 include obj.mk 36 OBJ = $(SRC:%.c=../build/%$(OBJ_EXT))
34 37
35 $(BIN): $(OBJ) 38 all: $(OBJ)
36 $(LD) -o $(DST)/$@ $^ $(LDFLAGS) 39 $(LD) -o ../build/$(BIN) $^ $(LDFLAGS)
37 40
38 41
39 $(DST)/%.$(OBJEXT): %.c 42 ../build/%$(OBJ_EXT): %.c
40 $(CC) -o $@ $(CFLAGS) -c $< 43 $(CC) -o $@ $(CFLAGS) -c $<
41 44

mercurial