updated win32 support for MINGW32-compiler/cross-compiler
[librfid] / win32 / Makefile.am
1 LIBVERSION= 0:0:0
2
3 noinst_HEADERS = openpcd.h
4 noinst_DATA = openpcd.dll
5
6 INCLUDES = -I$(top_srcdir)/include
7 LIBRFID_DIR = $(top_builddir)/src/.libs/
8 CLEANFILES = $(noinst_DATA)
9
10 .c.o:
11         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
12
13 .o.dll:
14         $(CC) -mno-cygwin --add-stdcall-alias -shared -o $@ -L$(LIBRFID_DIR) $< -lrfid -lwinmm -Wl,-no-undefined -Wl,--entry,__cygwin_noncygwin_dll_entry@12
15         $(STRIP) --strip-unneeded $@