diff --git a/Makefile.mingw b/Makefile.mingw index b0e2df9..4c8c29b 100644 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -4,19 +4,19 @@ all: imx_usb imx_uart # Building with MinGW natively CC = gcc -USBCFLAGS = -I$(LIBUSBPATH)\include -USBLDFLAGS = -L$(LIBUSBPATH)\MinGW32\dll -lusb-1.0 +USBCFLAGS = -I$(LIBUSBPATH)/include +USBLDFLAGS = -L$(LIBUSBPATH)/MinGW32/dll -lusb-1.0 -imx_usb.o : imx_usb.c imx_sdp.h portable.h +imx_usb.o : imx_usb.c imx_sdp.h imx_loader_config.h portable.h $(CC) -c $*.c -o $@ -Wstrict-prototypes -Wno-trigraphs -pipe -ggdb $(USBCFLAGS) $(CFLAGS) -%.o : %.c imx_sdp.h portable.h +%.o : %.c imx_sdp.h imx_loader_config.h portable.h image.h $(CC) -c $*.c -o $@ -Wstrict-prototypes -Wno-trigraphs -pipe -ggdb $(CFLAGS) -imx_usb: imx_usb.o imx_sdp.o +imx_usb: imx_usb.o imx_sdp.o imx_sdp_simulation.o imx_loader_config.o $(CC) -o $@ $@.o imx_sdp.o $(LDFLAGS) $(USBLDFLAGS) -imx_uart: imx_uart.o imx_sdp.o +imx_uart: imx_uart.o imx_sdp.o imx_loader_config.o $(CC) -o $@ $@.o imx_sdp.o $(LDFLAGS) clean: