summaryrefslogtreecommitdiff
path: root/usrp/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'usrp/firmware')
-rw-r--r--usrp/firmware/lib/Makefile.am6
-rw-r--r--usrp/firmware/src/usrp2/Makefile.am8
2 files changed, 5 insertions, 9 deletions
diff --git a/usrp/firmware/lib/Makefile.am b/usrp/firmware/lib/Makefile.am
index 3ddafcf1b..47fc6f730 100644
--- a/usrp/firmware/lib/Makefile.am
+++ b/usrp/firmware/lib/Makefile.am
@@ -57,13 +57,9 @@ LIBOBJS = \
all: libfx2.lib
-%.rel : %.c
+.c.rel:
$(XCC) $(INCLUDES) $(DEFINES) -c $< -o $@
-%.rel : %.a51
- $(XAS) $<
-
-
$(LIBRARY): $(LIBOBJS)
-rm -f $(LIBRARY)
touch $(LIBRARY)
diff --git a/usrp/firmware/src/usrp2/Makefile.am b/usrp/firmware/src/usrp2/Makefile.am
index 41664a2da..e2b9f9e61 100644
--- a/usrp/firmware/src/usrp2/Makefile.am
+++ b/usrp/firmware/src/usrp2/Makefile.am
@@ -90,11 +90,11 @@ noinst_SCRIPTS = \
burn-usrp4-eeprom
-%.rel : %.c
+.c.rel:
$(XCC) $(INCLUDES) $(DEFINES) \
-c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
-%.rel : %.a51
+.a51.rel:
test -f `basename '$<'` || ln -s '$<' .
test -f ../common/`basename '$<'` -o \
\! -f `dirname '$<'`/../common/`basename '$<'` \
@@ -108,11 +108,11 @@ eeprom_boot.ihx: $(EEPROM_BOOT_OBJS) $(LIBDEP)
$(XCC) $(LINKOPTS) -o $@ $(EEPROM_BOOT_OBJS)
burn-usrp2-eeprom: eeprom_boot.ihx
- $(srcdir)/../common/build_eeprom.py -r2 $< > $@
+ $(srcdir)/../common/build_eeprom.py -r2 eeprom_boot.ihx > $@
chmod +x $@
burn-usrp4-eeprom: eeprom_boot.ihx
- $(srcdir)/../common/build_eeprom.py -r4 $< > $@
+ $(srcdir)/../common/build_eeprom.py -r4 eeprom_boot.ihx > $@
chmod +x $@