39
by Jonas Finnemann Jensen
Added win64 support |
1 |
# For bash on OS X, as /bin/sh is compiled with --enable-strict-posix-default |
2 |
SHELL = /bin/bash |
|
3 |
||
4 |
# Programs for processing |
|
5 |
LEX = flex |
|
6 |
YACC = bison |
|
7 |
CC = x86_64-w64-mingw32-g++ |
|
8 |
CUT = cut |
|
9 |
||
10 |
# Compiler and linker flags |
|
152.32.36
by Peter G. Jensen
removed flag not supported by gcc6 |
11 |
CFLAGS = -flto -I. |
152.32.34
by Peter G. Jensen
fixed windows compilation |
12 |
LDFLAGS = -flto=4 -static -static-libgcc -static-libstdc++ -L. -Wl,--enable-stdcall-fixup -Wl,-Bdynamic -llpsolve55 -Wl,-Bstatic -lpthread |
39
by Jonas Finnemann Jensen
Added win64 support |
13 |
|
14 |
# Input files |
|
15 |
FLEX_SOURCES = $(shell find * -name "*.l") |
|
16 |
BISON_SOURCES = $(shell find * -name "*.y") |
|
17 |
SOURCES = $(shell find * -name "*.cpp" | grep -v ".\\(parser\\|lexer\\).cpp") \ |
|
18 |
$(BISON_SOURCES:.y=.parser.cpp) \ |
|
19 |
$(FLEX_SOURCES:.l=.lexer.cpp) |
|
20 |
DEPS = lpsolve55.dll |
|
21 |
OBJECTS = $(SOURCES:.cpp=.o) |
|
22 |
TARGET = verifypn-win64 |
|
23 |
||
24 |
include rules.mk |
|
25 |
||
26 |
lpsolve55.dll: lpsolve/lpsolve55-win64.dll |
|
27 |
cp $< $@ |