You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
472 B
Makefile
22 lines
472 B
Makefile
CXXFLAGS ?= -O2
|
|
|
|
CSV_FILES = adjective_list.csv adverb_list.csv noun_list.csv verb_list.csv
|
|
|
|
.PHONY: clean all
|
|
all: udcrr
|
|
|
|
udcrr.rb: gen_wordlist.rb $(CSV_FILES)
|
|
./gen_wordlist.rb ruby $@
|
|
|
|
udcrr.lua: gen_wordlist.rb $(CSV_FILES)
|
|
./gen_wordlist.rb lua $@
|
|
|
|
udcrr.data.hpp: gen_wordlist.rb $(CSV_FILES)
|
|
./gen_wordlist.rb cxx $@
|
|
|
|
udcrr: udcrr.cpp udcrr.data.hpp
|
|
$(CXX) $(CXXFLAGS) -o $@ $<
|
|
|
|
udcrr.so: udcrr.cpp udcrr.data.hpp
|
|
$(CXX) -fPIC -shared $(CXXFLAGS) -o $@ $<
|