Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 71d75fb7d4
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (16 sloc) 0.594 kB
JULIAHOME = $(abspath ..)
include $(JULIAHOME)/Make.inc
all: glpk_h.jl webrepl_msgtypes_h.jl
GLPK_VER = 4.47
GLPK_CONST = 0x[0-9a-fA-F]+|[-+]?\s*[0-9]+
ifeq ($(USE_SYSTEM_GLPK), 1)
GLPK_PREFIX = /usr/include
else
GLPK_PREFIX = $(JULIAHOME)/deps/glpk-$(GLPK_VER)/src
endif
glpk_h.jl:
$(QUIET_PERL) cpp -dM $(GLPK_PREFIX)/glpk.h | perl -nle '/^\s*#define\s+(GLP\w*)\s*\(?($(GLPK_CONST))\)?\s*$$/ and print "const $$1 = int32($$2)"' | sort > $@
webrepl_msgtypes_h.jl: ../ui/webserver/message_types.h
$(QUIET_PERL) cpp -Dnotdefined $^ > $@
clean:
rm -f glpk_h.jl julia_message_types_h.jl
Jump to Line
Something went wrong with that request. Please try again.