# This file is part of ettt - a simple web-based Tic-Tac-Toe application # @copyright Copyright (C) 2006-7 # @author Toby Thain # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # This is a GNU Makefile. EFLAGS = -Durl=\"./ettt:play\" # definition for inets httpd & pico yaws : EFLAGS = -Durl=\"/ettt/play\" # definition for yaws EBINS = ebin/ettt.beam ebin/ttt.beam ebin/pico_driver.beam # where to look for sources vpath %.erl src # compile rule ebin/%.beam : %.erl erlc -o ebin $(EFLAGS) $< all yaws : $(EBINS) boot : ettt.boot ettt.boot : $(EBINS) ettt.rel ebin/ettt.app erl -pa ebin -noshell -s systools make_script ettt local -s init stop draws : ebin/draws.beam ebin/ttt.beam erl -pa ebin -noshell -s draws -s init stop clean : rm -f $(EBINS) ebin/draws.beam erl_crash.dump ettt.boot ettt.script start : $(EBINS) inets.config erl -pa ebin -config inets -s inets start -s ettt start -noshell -detached