#/*
# Copyright (C) 2002 MandrakeSoft SA
# 
# This program may be distributed and/or
# modified under the terms of the GNU General Public
# License version 2 as published by the Free Software Foundation
# 
# 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.
# 
# Licensees holding valid MandrakeSecurity MNF Commercial License may use this
# file in  accordance with the MandrakeSecurity MNF Commercial License Agreement
# provided with the Software.
# 
# See http://www.mandrakesoft.com/mnf/license for information about MandrakeSecurity MNF Commercial License Agrrement.
#*/ 
ROOT=..
TEST_WAT_FILE=${ROOT}/../examples/dns.naat

SOURCES = main.c syntax.c parser.c compiler.c generator.c backend.c
CFLAGS = -g
#CFLAGS = -O3
#CFLAGS = -pg

all: naatc

naatc: $(SOURCES)
	cc -Wall -o naatc $(CFLAGS) $(SOURCES) -lxml

clean:
	/bin/rm -rf *.o naatc gmon.out

test:
	./naatc ${TEST_WAT_FILE} 


