SRC_D = SRC_E = SRC_P = p1_xxx.c p2_xxx.c p3_xxx.c p4_xxx.c p5_xxx.c p6_xxx.c SRC_R = SRC_T = TCC = tinycc TVM = tinyvm -include ../local.mk BIN_T := ${SRC_T:.asm=.bin} BIN_D := ${SRC_D:.asm=.bin} BIN_E := ${SRC_E:.asm=.bin} BIN_P := ${SRC_P:.asm=.bin} BIN_R := ${SRC_R:.asm=.bin} BIN_T := ${BIN_T:.c=.bin} BIN_D := ${BIN_D:.c=.bin} BIN_E := ${BIN_E:.c=.bin} BIN_P := ${BIN_P:.c=.bin} BIN_R := ${BIN_R:.c=.bin} BIN = $(BIN_T) $(BIN_D) $(BIN_E) $(BIN_P) $(BIN_R) SRC = $(SRC_T) $(SRC_D) $(SRC_E) $(SRC_P) $(SRC_R) DEP = ${BIN_D:%.bin=.%.d} ${BIN_P:%.bin=.%.d} ${BIN_T:%.bin=.%.d} ${BIN_E:%.bin=.sol.%.d} .SUFFIXES: .asm .c .bin all: $(BIN) clean: @rm -f $(BIN) $(DEP) @rm -f *.core core *~ a.out .check.*.out valgrind.out a.out .asm.bin: @echo $(@): $(<) makefile > $(@:%.bin=.%.d) $(TCC) --no-prolog -o $(@) $(<) $(TVM) $(@) .c.bin: @echo $(@): $(<) makefile > .$(@:%.bin=.%.d) $(TCC) -o $(@) $(<) $(TVM) $(@) -include $(DEP) .PHONY: all clean