Skip to content

Instantly share code, notes, and snippets.

@akimasa
Created March 17, 2017 11:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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