7 SRC
= main.c util.c parse.c cfg.c mem.c ssa.c alias.c load.c copy.c fold.c live.c
$(ABI
).c isel.c spill.c rega.c emit.c
8 OBJ
= $(SRC
:%.c
=$(OBJDIR
)/%.o
)
10 CFLAGS
+= -Wall
-Wextra
-std
=c99
-g
-pedantic
12 $(OBJDIR
)/$(BIN
): $(OBJ
) $(OBJDIR
)/timestamp
13 @
test -z
"$(V)" || echo
"ld $@"
14 $(V
)$(CC
) $(LDFLAGS
) $(OBJ
) -o
$@
16 $(OBJDIR
)/%.o
: %.c
$(OBJDIR
)/timestamp
17 @
test -z
"$(V)" || echo
"cc $<"
18 $(V
)$(CC
) $(CFLAGS
) -c
$< -o
$@
29 *Darwin
*) echo
"#define Defaultasm Gasmacho" ;; \
30 *) echo
"#define Defaultasm Gaself" ;; \
39 check: $(OBJDIR
)/$(BIN
)
47 if (length(\$$0) > $@) \
48 printf(\"$$F:%d: %s\\n\", NR, \$$0); \
52 .PHONY
: clean clean-gen
check 80 syndoc