summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-05-18 13:51:26 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-05-18 13:51:26 -0500
commit9ea98f274e18a3407ce109a331553e1c910274d9 (patch)
treed1b5b14ed355188b31457733d34dfdd812910afd /makefile
parenta5715803fd096bd223b6afd8b26d8efbb96239d4 (diff)
downloadtalos-hostboot-9ea98f274e18a3407ce109a331553e1c910274d9.tar.gz
talos-hostboot-9ea98f274e18a3407ce109a331553e1c910274d9.zip
Improve make infrastructure.
Diffstat (limited to 'makefile')
-rw-r--r--makefile24
1 files changed, 4 insertions, 20 deletions
diff --git a/makefile b/makefile
index 7020c5aac..ccd8fed68 100644
--- a/makefile
+++ b/makefile
@@ -1,21 +1,5 @@
-CC = powerpc64-unknown-linux-gnu-gcc
-CXX = powerpc64-unknown-linux-gnu-g++
-LD = powerpc64-unknown-linux-gnu-ld
+SUBDIRS = src.d
+include ./config.mk
-COMMONFLAGS = -O3 -nostdlib
-CFLAGS = ${COMMONFLAGS} -mcpu=620 -fno-rtti -fno-exceptions
-CXXFLAGS = ${CFLAGS}
-LDFLAGS = -static ${COMMONFLAGS}
-
-OBJECTS = start.o kernel.o
-
-all: kernel.elf kernel.bin
-
-kernel.elf: ${OBJECTS} kernel.ld
- ${LD} ${LDFLAGS} ${OBJECTS} -T kernel.ld -o kernel.elf
-
-kernel.bin: ${OBJECTS} kernel.ld
- ${LD} ${LDFLAGS} ${OBJECTS} --oformat=binary -T kernel.ld -o kernel.bin
-
-clean:
- (rm -f ${OBJECTS} kernel.elf kernel.bin)
+all: ${SUBDIRS}
+clean: $(patsubst %.d,%.clean, ${SUBDIRS})
OpenPOWER on IntegriCloud