Makefile

changeset 10
ecf787666f44
parent 3
510d6b198dde
child 13
51b1ba3776b1
equal deleted inserted replaced
8:28319b20968c 10:ecf787666f44
1 CC = gcc 1 CC = gcc
2 OBJ = cline.o functions.o 2 BUILDDIR = build
3 OBJ = ${BUILDDIR}/cline.o ${BUILDDIR}/scanner.o ${BUILDDIR}/settings.o ${BUILDDIR}/suffix_fnc.o ${BUILDDIR}/suffix_list.o ${BUILDDIR}/arguments.o
4 BIN = ${BUILDDIR}/cline
3 5
4 cline: ${OBJ} 6 all: ${OBJ}
5 ${CC} -o cline ${OBJ} 7 ${CC} -o ${BIN} ${OBJ}
6 8
7 %.o: %.c 9 ${BUILDDIR}/%.o: %.c
8 ${CC} -c -std=c99 $< 10 mkdir -p ${BUILDDIR}
11 ${CC} -c -std=c99 -o ${BUILDDIR}/$*.o $<
9 12
10 clean: 13 clean:
11 rm *.o 14 rm build/*

mercurial