diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-05-10 13:41:20 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-05-10 13:41:20 +0000 |
commit | f4299cb7e6a5e161aa16670acd33de1ef75fae4d (patch) | |
tree | fdfc282f7b18970d64d3228f4a1ba912083577d4 | |
parent | aa504313c33c5703b20a608fab74c05aa4c38a65 (diff) |
a Makefile for a MinGW-crosscompiler on linux
svn path=/trunk/externals/iem/iemmatrix/; revision=2939
-rw-r--r-- | src/Makefile.mingw4linux | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/Makefile.mingw4linux b/src/Makefile.mingw4linux new file mode 100644 index 0000000..d16cb28 --- /dev/null +++ b/src/Makefile.mingw4linux @@ -0,0 +1,44 @@ +LIBNAME = iemmatrix +EXT = dll + +PDPATH=/tmp/pd + +CC = i586-mingw32msvc-gcc +LD = i586-mingw32msvc-ld +STRIP = i586-mingw32msvc-strip + +DEFS = -DPD +IFLAGS = -I. -I$(PDPATH)/src + +AFLAGS = +LFLAGS = -export_dynamic -shared +WFLAGS = + +.SUFFIXES: .$(EXT) + +CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -mms-bitfields + +LIBS = -L$(PDPATH)/bin/ -lpd -lcrtdll -lm + + +include Make.source +TARGETS = $(SOURCES:.c=.o) + + +all: $(LIBNAME) + cp $(LIBNAME).$(EXT) .. + +$(LIBNAME): $(TARGETS) + $(LD) $(LFLAGS) *.o $(LIBS) -o $(LIBNAME).$(EXT) + $(STRIP) --strip-unneeded $(LIBNAME).$(EXT) + +clean: + -rm -f *.$(EXT) *.o + +cleaner: clean + -rm -f *~ _* config.* + +source: + echo "SOURCES = \\"> Make.source + echo `ls mtx_*.c $(LIBNAME).c` >> Make.source + echo >> Make.source |