Makefile (472B)
1 CXXFLAGS ?= -O2 2 3 CSV_FILES = adjective_list.csv adverb_list.csv noun_list.csv verb_list.csv 4 5 .PHONY: clean all 6 all: udcrr 7 8 udcrr.rb: gen_wordlist.rb $(CSV_FILES) 9 ./gen_wordlist.rb ruby $@ 10 11 udcrr.lua: gen_wordlist.rb $(CSV_FILES) 12 ./gen_wordlist.rb lua $@ 13 14 udcrr.data.hpp: gen_wordlist.rb $(CSV_FILES) 15 ./gen_wordlist.rb cxx $@ 16 17 udcrr: udcrr.cpp udcrr.data.hpp 18 $(CXX) $(CXXFLAGS) -o $@ $< 19 20 udcrr.so: udcrr.cpp udcrr.data.hpp 21 $(CXX) -fPIC -shared $(CXXFLAGS) -o $@ $<