Created
April 9, 2012 14:24
-
-
Save nruth/2343804 to your computer and use it in GitHub Desktop.
gecode gcc makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: send-more-money donald | |
# use git clean -f for make clean, but confirm action | |
define gitCLEAN | |
puts 'ARE YOU SURE (git clean -f) ? y/n'; \ | |
puts %x(git clean -n); \ | |
exec('git clean -f') if gets.chomp =~ /^y/i | |
endef | |
clean: | |
ruby -e "$(gitCLEAN)" | |
# http://www.cs.duke.edu/~ola/courses/programming/Makefiles | |
# set up compiler and options | |
# default rules | |
# .cc.o: | |
# -> $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $< | |
# | |
# .o : | |
# -> $(CC) $(LDFLAGS) $^ -o $@ $(LOADLIBES) | |
CXX = g++ -I/usr/local/include | |
CC = LD_RUN_PATH=/usr/local/lib g++ | |
#linker config | |
LOADLIBES = -lgecodegist \ | |
-lgecodesearch \ | |
-lgecodeminimodel \ | |
-lgecodeint \ | |
-lgecodesupport \ | |
-lgecodekernel | |
# send-more-money.o: | |
# g++ -I/usr/local/include -c send-more-money.cpp | |
# send-more-money: send-more-money.o | |
# LD_RUN_PATH=/usr/local/lib g++ -L/usr/local/lib -o send-more-money send-more-money.o\ | |
# -lgecodegist \ | |
# -lgecodesearch \ | |
# -lgecodeminimodel \ | |
# -lgecodeint -lgecodesupport -lgecodekernel | |
# # -W1,-R/usr/local/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment