Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: add missing files in the Makefile for Mingw #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ [email protected] 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 $@ [email protected] imx_sdp.o $(LDFLAGS)

clean:
Expand Down