3 CFLAGS
= -g
-Wall
-Werror
$(CPPFLAGS
)
4 CPROF_FLAGS
=-pg
-fprofile-arcs
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
$@
$<
18 test: $(BUILD_DIR
)/romcc
21 test-simple
: $(BUILD_DIR
)/romcc
24 test-linux
: $(BUILD_DIR
)/romcc
30 .PHONY
: all test test-simple test-linux
clean distclean