summaryrefslogtreecommitdiff
path: root/lib/Makefile.sol.mingw
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile.sol.mingw')
-rw-r--r--lib/Makefile.sol.mingw17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/Makefile.sol.mingw b/lib/Makefile.sol.mingw
index 8f15e9e..0550fa8 100644
--- a/lib/Makefile.sol.mingw
+++ b/lib/Makefile.sol.mingw
@@ -1,14 +1,17 @@
CC = i586-mingw32msvc-gcc
CXX = i586-mingw32msvc-g++
-LD = i586-mingw32msvc-ld
+AR = i586-mingw32msvc-ar
+RANLIB = i586-mingw32msvc-ranlib
CPPFLAGS = -I../include -DFORCE64
-OBJECTS = Exceptions.o Handle.o Image.o Input.o Main.o Output.o String.o \
- checkargs.o datecalc.o fileutils.o generic.o
+OBJECTS = Buffer.o Exceptions.o Handle.o Image.o Input.o Main.o Output.o \
+ String.o checkargs.o datecalc.o fileutils.o generic.o
+TARGET = Baltisot-sol.a
-all: Baltisot-sol.dll
+all: $(TARGET)
-Baltisot-sol.dll: $(OBJECTS)
- $(CXX) -o Baltisot-sol.dll -shared $(OBJECTS) -lz
+$(TARGET): $(OBJECTS)
+ $(AR) r Baltisot-sol.a $(OBJECTS)
+ $(RANLIB) Baltisot-sol.a
clean:
- rm -f *.o
+ rm -f *.o $(TARGET)