Makefile

Thu, 15 Sep 2011 13:29:06 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 15 Sep 2011 13:29:06 +0200
changeset 10
ecf787666f44
parent 3
510d6b198dde
child 13
51b1ba3776b1
permissions
-rw-r--r--

refactored sources

CC = gcc
BUILDDIR = build
OBJ = ${BUILDDIR}/cline.o ${BUILDDIR}/scanner.o ${BUILDDIR}/settings.o ${BUILDDIR}/suffix_fnc.o ${BUILDDIR}/suffix_list.o ${BUILDDIR}/arguments.o
BIN = ${BUILDDIR}/cline

all: ${OBJ}
	${CC} -o ${BIN} ${OBJ}

${BUILDDIR}/%.o: %.c
	mkdir -p ${BUILDDIR}
	${CC} -c -std=c99 -o ${BUILDDIR}/$*.o $<

clean:
	rm build/*

mercurial