Thu, 15 Sep 2011 13:29:06 +0200
refactored sources
universe@0 | 1 | CC = gcc |
universe@10 | 2 | BUILDDIR = build |
universe@10 | 3 | OBJ = ${BUILDDIR}/cline.o ${BUILDDIR}/scanner.o ${BUILDDIR}/settings.o ${BUILDDIR}/suffix_fnc.o ${BUILDDIR}/suffix_list.o ${BUILDDIR}/arguments.o |
universe@10 | 4 | BIN = ${BUILDDIR}/cline |
universe@0 | 5 | |
universe@10 | 6 | all: ${OBJ} |
universe@10 | 7 | ${CC} -o ${BIN} ${OBJ} |
universe@1 | 8 | |
universe@10 | 9 | ${BUILDDIR}/%.o: %.c |
universe@10 | 10 | mkdir -p ${BUILDDIR} |
universe@10 | 11 | ${CC} -c -std=c99 -o ${BUILDDIR}/$*.o $< |
universe@3 | 12 | |
universe@3 | 13 | clean: |
universe@10 | 14 | rm build/* |