diff --git a/src/Makefile b/src/Makefile index f36fcb7..89867a8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -442,8 +442,8 @@ $(BUILD_DIR)/test_gpio.elf: $(BUILD_DIR) test_gpio.c marvell_88e1111.c mii-bitba cat $@.srec | $(PACKHEX) > $@.pack $(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex -$(BUILD_DIR)/test_emac_sim.elf: $(BUILD_DIR) test_emac_sim.c emac.c emac.h - $(CC) $(CFLAGS) -o $@ -Os test_emac_sim.c emac.c $(LIBS) >$@.map +$(BUILD_DIR)/test_emac_sim.elf: $(BUILD_DIR) test_emac_sim.c common/network/emac.c common/network/emac.h + $(CC) $(CFLAGS) -o $@ -Os test_emac_sim.c common/network/emac.c $(LIBS) >$@.map $(OBJDUMP) -d $@ > $@.dis $(OBJCOPY) $@ -O binary $@.bin $(OBJCOPY) -O srec $@ $@.srec diff --git a/src/test_emac_sim.c b/src/test_emac_sim.c index 8ff27e7..96447fd 100644 --- a/src/test_emac_sim.c +++ b/src/test_emac_sim.c @@ -8,7 +8,7 @@ #include #include -#include "emac.h" +#include volatile uint32_t g_rx_pkt_cnt; volatile uint32_t g_rx_byte_cnt;