Files
ortools-clone/Makefile
lperron@google.com d0926c5188 fix makefiles
2011-08-11 18:43:41 +00:00

39 lines
1.0 KiB
Makefile

# Top level declarations
help:
@echo Please define target:
@echo " - constraint programming: cplibs cpexe pycp javacp"
@echo " - mathematical programming: lplibs lpexe pylp javalp"
@echo " - algorithms: algorithmslibs pyalgorithms javaalgorithms"
@echo " - graph: graphlibs pygraph javagraph"
@echo " - misc: clean"
all: cplibs cpexe pycp javacp algorithmslibs pyalgorithms javaalgorithms graphlibs pygraph javagraph lplibs lpexe pylp javalp
# Let's discover something about where we run
ifeq "$(SHELL)" "cmd.exe"
SYSTEM=win
else
ifeq "$(SHELL)" "sh.exe"
SYSTEM=win
else
SYSTEM=unix
endif
endif
# First, we include predefined variables
include Makefile.def
# Then we overwrite the local ones if the Makefile.local file exists.
-include Makefile.local
# Then include specific system commands and definitions
include Makefile.$(SYSTEM)
# Include .mk files.
include Makefile.cpp.mk
include Makefile.python.mk
include Makefile.java.mk
# Finally include user makefile if it exists
-include Makefile.user