X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=Makefile;h=0438d128900ce80ffd5d4d3ef4c900799ddf6679;hp=1a2f7341865eb90a822bccce0edae32380f29789;hb=a2f94f569a4c99204de02814a20098a71527e913;hpb=d1e8a437c1fab4535f82c4c214ec3330ac32e48d diff --git a/Makefile b/Makefile index 1a2f734..0438d12 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ csrc = $(wildcard src/*.c) $(wildcard src/libc/*.c) ssrc = $(wildcard src/*.s) $(wildcard src/libc/*.s) $(wildcard src/boot/*.s) -obj = $(csrc:.c=.o) $(ssrc:.s=.o) +Ssrc = $(wildcard src/*.S) +obj = $(csrc:.c=.o) $(ssrc:.s=.o) $(Ssrc:.S=.o) dep = $(obj:.o=.d) elf = test bin = test.bin @@ -40,6 +41,9 @@ $(bin): $(elf) $(elf): $(obj) $(LD) -o $@ $(obj) -Map link.map $(LDFLAGS) +%.o: %.S + $(CC) -o $@ $(CFLAGS) -c $< + -include $(dep) %.d: %.c