Makefile

Thu, 15 Sep 2011 13:38:03 +0200

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

Merge with 1dd63a32ffc486b71399045cf8443ec6ac9d7bf5

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