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

0
518bfd1cc1e8 cline project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 CC = gcc
10
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
2 BUILDDIR = build
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
3 OBJ = ${BUILDDIR}/cline.o ${BUILDDIR}/scanner.o ${BUILDDIR}/settings.o ${BUILDDIR}/suffix_fnc.o ${BUILDDIR}/suffix_list.o ${BUILDDIR}/arguments.o
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
4 BIN = ${BUILDDIR}/cline
0
518bfd1cc1e8 cline project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
10
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
6 all: ${OBJ}
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
7 ${CC} -o ${BIN} ${OBJ}
1
34a5e235d16e cline version 2
Mike Becker <universe@uap-core.de>
parents: 0
diff changeset
8
10
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
9 ${BUILDDIR}/%.o: %.c
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
10 mkdir -p ${BUILDDIR}
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
11 ${CC} -c -std=c99 -o ${BUILDDIR}/$*.o $<
3
510d6b198dde Moved some functions to functions.c
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
12
510d6b198dde Moved some functions to functions.c
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
13 clean:
10
ecf787666f44 refactored sources
Mike Becker <universe@uap-core.de>
parents: 3
diff changeset
14 rm build/*

mercurial