util/release/genrelnotes: Add "sifive" search pattern
[coreboot.git] / util / romcc / Makefile
blob2c5f174cf22ac31fcd87e9ecf4a834cde0a476f7
1 CC=gcc
2 CPPFLAGS=
3 CFLAGS= -g -Wall -Werror $(CPPFLAGS)
4 CPROF_FLAGS=-pg -fprofile-arcs
5 BUILD_DIR=build
7 default: $(BUILD_DIR)/romcc
9 $(BUILD_DIR)/romcc: romcc.c $(BUILD_DIR)
10 $(CC) $(CFLAGS) -o $@ $<
12 $(BUILD_DIR)/romcc_pg: romcc.c $(BUILD_DIR)
13 $(CC) $(CFLAGS) $(CPROF_FLAGS) -o $@ $<
15 $(BUILD_DIR):
16 mkdir -p $(BUILD_DIR)
18 test: $(BUILD_DIR)/romcc
19 ./test.sh all
21 test-simple: $(BUILD_DIR)/romcc
22 ./test.sh simple
24 test-linux: $(BUILD_DIR)/romcc
25 ./test.sh linux
27 clean distclean:
28 rm -rf $(BUILD_DIR)
30 .PHONY: all test test-simple test-linux clean distclean