21 lines
383 B
Makefile
21 lines
383 B
Makefile
CC=propeller-elf-gcc
|
|
MODEL=lmm
|
|
CFLAGS=-Os -m$(MODEL)
|
|
LDFLAGS=-m$(MODEL)
|
|
OBJDIR=./
|
|
SRCDIR=./
|
|
|
|
OBJS = filetest.o printf.o spinix.o file_io.o
|
|
HDRS =
|
|
|
|
filetest.elf: $(OBJS)
|
|
@$(CC) $(LDFLAGS) $(OBJS) -o $@ -s
|
|
binary:
|
|
propeller-load -s -D clkfreq=1347436867 -D clkmode=98 filetest.elf
|
|
|
|
clean:
|
|
rm -f *.o *.elf *.binary
|
|
|
|
$(OBJDIR)/%.o: $(SRCDIR)/%.c $(HDRS)
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|