Makefile

Fri, 16 Sep 2011 09:14:59 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 16 Sep 2011 09:14:59 +0200
changeset 12
902cb8d2053c
parent 10
ecf787666f44
child 13
51b1ba3776b1
permissions
-rw-r--r--

removed dynamic programm name

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