Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (16 sloc) 600 Bytes
JULIAHOME = $(abspath ..)
include $(JULIAHOME)/Make.inc
all: glpk_h.jl julia_message_types_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 > $@
julia_message_types_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.