markly

Markov chain for text generation
git clone git://git.yotsev.xyz/markly.git
Log | Files | Refs | README | LICENSE

Makefile (426B)


      1 CC = g++
      2 CC_FLAGS = -lboost_iostreams -lboost_serialization -O3
      3 
      4 EXEC = markly
      5 SOURCES = $(wildcard *.cpp)
      6 OBJECTS = $(SOURCES:.cpp=.o)
      7 
      8 $(EXEC): $(OBJECTS)
      9 	$(CC) $(OBJECTS) -o $(EXEC) $(CC_FLAGS)
     10 
     11 %.o: %.cpp
     12 	$(CC) -c $(CC_FLAGS) $< -o $@
     13 
     14 install: $(EXEC)
     15 	cp -f $(EXEC) /usr/local/bin
     16 	chmod 755 /usr/local/bin/$(EXEC)
     17 
     18 uninstall:
     19 	rm -f /usr/local/bin/$(EXEC)
     20 
     21 clean:
     22 	rm -f $(EXEC) $(OBJECTS)
     23 
     24 .PHONY: install uninstall