Simple single-color 8x8x8 LED Cube with AVRs
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

makefile 220B

1234567891011121314151617181920
  1. CC = gcc
  2. SRC = main.c
  3. SRC += serial.c
  4. SRC += mem.c
  5. TARGET = cubeEmu
  6. OBJ = $(SRC:.c=.o)
  7. all: $(TARGET)
  8. $(TARGET): $(OBJ)
  9. $(CC) -o $(TARGET) $(OBJ)
  10. %.o: %.c
  11. $(CC) -x c -c $< -o $@
  12. clean:
  13. $(RM) *.o
  14. $(RM) $(TARGET)