chiark / gitweb /
New ASSEMBLE variable
authorian <ian>
Thu, 6 Jan 2005 19:30:57 +0000 (19:30 +0000)
committerian <ian>
Thu, 6 Jan 2005 19:30:57 +0000 (19:30 +0000)
pic.make

index dad1753c9340451b453a4d6b795495840480c20a..8c1f5fdcba8a4994bcc2bb672d5f6fecf2a2ebff 100644 (file)
--- a/pic.make
+++ b/pic.make
@@ -7,6 +7,7 @@ all:            $(TARGETS) $(PROGRAM_HEXES)
 o=>$@.new && mv -f $@.new $@
 
 LINK=          gplink -o $@ $^
+ASSEMBLE=      gpasm -p 18f458
 
 %-full.hex:    %.o config.o
                $(LINK)
@@ -15,7 +16,7 @@ LINK=         gplink -o $@ $^
                $(LINK)
 
 %.o:           %.asm
-               gpasm -p 18f458 -c $<
+               $(ASSEMBLE) -c $<
 
 .PRECIOUS:     %.o