mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-27 19:56:23 +00:00
mingw32/64 : now compile and link the dll resources.
git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libusbhxcfe/trunk@1956 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
@@ -26,12 +26,14 @@ endif
|
||||
|
||||
ifeq ($(TARGET), mingw32)
|
||||
CC=i686-w64-mingw32-gcc
|
||||
RESC=i686-w64-mingw32-windres
|
||||
LDFLAGS += -static-libgcc ../sources/win32/libusbhxcfe.def -s
|
||||
EXEC=libusbhxcfe.dll
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET), mingw64)
|
||||
CC=x86_64-w64-mingw32-gcc
|
||||
RESC=x86_64-w64-mingw32-windres
|
||||
LDFLAGS += -static-libgcc ../sources/win32/libusbhxcfe.def -s
|
||||
EXEC=libusbhxcfe.dll
|
||||
endif
|
||||
@@ -48,22 +50,25 @@ endif
|
||||
|
||||
all: $(EXEC)
|
||||
|
||||
libusbhxcfe.dll: usb_hxcfloppyemulator.o variablebitrate.o ftdi.o ../../../build/libhxcadaptor.a
|
||||
libusbhxcfe.dll: win32_libusbhxcfe_res.o usb_hxcfloppyemulator.o variablebitrate.o ftdi.o ../../../build/libhxcadaptor.a
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
cp $@ ../../../build
|
||||
|
||||
libusbhxcfe.dylib: usb_hxcfloppyemulator.o variablebitrate.o ftdi.o
|
||||
$(AR) r $@ $^
|
||||
$(AR) r $@ $^
|
||||
cp $@ ../../../build
|
||||
|
||||
libusbhxcfe.a: usb_hxcfloppyemulator.o variablebitrate.o ftdi.o
|
||||
$(AR) r $@ $^
|
||||
$(AR) r $@ $^
|
||||
cp $@ ../../../build
|
||||
|
||||
libusbhxcfe.so: usb_hxcfloppyemulator.o variablebitrate.o ftdi.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
cp $@ ../../../build
|
||||
|
||||
win32_libusbhxcfe_res.o: $(BASEDIR)/win32/libusbhxcfe.rc
|
||||
$(RESC) $< $@
|
||||
|
||||
usb_hxcfloppyemulator.o: $(BASEDIR)/usb_hxcfloppyemulator.c
|
||||
$(CC) -o $@ -c $< $(CFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user