Makefile 197 B

12345678910111213
  1. CFLAGS += -I .
  2. all: apu_boot.o smp.o
  3. apu_boot.o: apu_boot.S
  4. gcc -E apu_boot.S > _apu_boot.s # 预处理
  5. as $(ASFLAGS) -o apu_boot.o _apu_boot.s
  6. smp.o: smp.c
  7. gcc $(CFLAGS) -c smp.c -o smp.o