Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SHELL=/bin/sh
- XC16PATH=/opt/microchip/xc16/v1.24
- ASM=$(XC16PATH)/bin/xc16-as
- ASMFLAGS=-omf=elf -p24FJ256DA206
- LD=$(XC16PATH)/bin/xc16-ld
- LDFLAGS=-T $(XC16PATH)/support/PIC24F/gld/p24FJ256DA206.gld
- BIN2HEX=$(XC16PATH)/bin/xc16-bin2hex
- BIN2HEXFLAGS=
- SRC=main.s
- $(notdir $(shell pwd)): $(SRC)
- $(ASM) $(ASMFLAGS) -o $@.elf $^
- $(LD) $(LDFLAGS) -o $@.bin $@.elf
- $(BIN2HEX) $(BIN2HEXFLAGS) $@.bin
- clean:
- rm -rf *.elf *.hex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement