Skip to content

Instantly share code, notes, and snippets.

@akimasa
Created March 17, 2017 11:55
Show Gist options
  • Save akimasa/82e78ab4baf76725eafe935eb0437bb2 to your computer and use it in GitHub Desktop.
Save akimasa/82e78ab4baf76725eafe935eb0437bb2 to your computer and use it in GitHub Desktop.
SRC=blink_led.c
CC=sdcc
FAMILY=pic14
PROC=12lf1822
all: $(SRC:.c=.hex)
$(SRC:.c=.hex): $(SRC)
$(CC) --use-non-free -m$(FAMILY) -p$(PROC) $^
clean:
rm -f $(SRC:.c=.asm) $(SRC:.c=.cod) $(SRC:.c=.hex) $(SRC:.c=.lst) $(SRC:.c=.o)
.PHONY: all clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment