Commits

Anonymous committed f49fb2f Merge

Merge branch 'master' of git@github.com:ubixum/fx2lib

  • Participants
  • Parent commits d415fde, e0b7c87

Comments (0)

Files changed (1)

File examples/fx2.mk

 bix: $(BASENAME).bix
 iic: $(BASENAME).iic
 
-$(BASENAME).ihx: $(SOURCES) $(A51_SOURCES)
-	# can't use default target %.rel because there is no way
-	# to differentiate the dependency.  (Is it %.rel: %.c or %.a51)
+$(FX2LIBDIR)/lib/fx2.lib: $(FX2LIBDIR)/lib/*.c $(FX2LIBDIR)/lib/*.a51
+	make -C $(FX2LIBDIR)/lib
+
+$(BASENAME).ihx: $(SOURCES) $(A51_SOURCES) $(FX2LIBDIR)/lib/fx2.lib
+# can't use default target %.rel because there is no way
+# to differentiate the dependency.  (Is it %.rel: %.c or %.a51)
 	for a in $(A51_SOURCES); do \
 	 asx8051 -logs $$a; done
 	for s in $(SOURCES); do \
 	
 clean:
 	rm -f *.{asm,ihx,lnk,lst,map,mem,rel,rst,sym,adb,cdb,bix}
+	make -C $(FX2LIBDIR)/lib clean