coreboot-kgpe-d16/util/romcc/Makefile
Jonathan Neuschäfer 0a20c08d0f romcc: Remove old test infrastructure, rework Makefile
Changes in visible behaviour:
 - The default make target doesn't run the tests anymore
 - All generated files are stored under util/romcc/build/
   (or $BUILD_DIR)

Change-Id: If003240742eb1902a6e9b337cdee299d7d66ee06
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/14341
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
2016-04-14 19:13:07 +02:00

30 lines
559 B
Makefile

CC=gcc
CPPFLAGS=
CFLAGS= -g -Wall -Werror $(CPPFLAGS)
CPROF_FLAGS=-pg -fprofile-arcs
BUILD_DIR=build
default: $(BUILD_DIR)/romcc
$(BUILD_DIR)/romcc: romcc.c $(BUILD_DIR)
$(CC) $(CFLAGS) -o $@ $<
$(BUILD_DIR)/romcc_pg: romcc.c $(BUILD_DIR)
$(CC) $(CFLAGS) $(CPROF_FLAGS) -o $@ $<
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
test: $(BUILD_DIR)/romcc
./test.sh all
test-simple: $(BUILD_DIR)/romcc
./test.sh simple
test-linux: $(BUILD_DIR)/romcc
./test.sh linux
clean distclean:
rm -rf $(BUILD_DIR)
.PHONY: all test test-simple test-linux clean distclean