# 
# This file is part of the Alliance CAD System
# Copyright (C) Laboratoire LIP6 - Dpartement ASIM
# Universite Pierre et Marie Curie
# 
# Home page          : http://www-asim.lip6.fr/alliance/
# E-mail support     : mailto:alliance-support@asim.lip6.fr
# 
# This progam 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.
# 
# Alliance VLSI  CAD System  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 the GNU C Library; see the  file COPYING. If not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# 

#               ,,,
#              (o o)
# ####=====oOO--(_)--OOO==========================================####
# ##                                                                ##
# ##   File            :  Makefike for BOOG                         ##
# ##   Author          :  Francois DONNET                           ##
# ##   Date            :  Jun 2000                                  ##
# ##                                                                ##
# ##   E-mail support  :  alliance-support@asim.lip6.fr             ##
# ##                                                                ##
# ####============================================================####
#
#
#

include $(ALLIANCE_TOP)/etc/$(ALLIANCE_OS).mk
include $(ALLIANCE_TOP)/etc/libraries.mk

BOOG     = boog
BOOG_VERSION = '"1.11 [2000/12/14]"'
LIBRARY   = libBog$(BOG_VER).a
BOG_H     = bog$(BOG_VER).h
BOG_L     = -lBog$(BOG_VER)

# TARGET_BIN     = ../bin/$(ALLIANCE_OS)
# TARGET_LIB     = ../lib/$(ALLIANCE_OS)
# TARGET_INCLUDE = ../include

LOCAL_CFLAGS   =  -g -Wall -O4


LOCAL_INC = \
   -I$(ALLIANCE_INCLUDE) \
   -DBOOG='"$(BOOG)"' \
   -DBOOG_VERSION=$(BOOG_VERSION) \
   -DALLIANCE_VERSION=$(ALLIANCE_VERSION) \
   -DMUT_H='<$(MUT_H)>' \
   -DMLO_H='<$(MLO_H)>' \
   -DMLU_H='<$(MLU_H)>' \
   -DABE_H='<$(ABE_H)>' \
   -DABV_H='<$(ABV_H)>' \
   -DAUT_H='<$(AUT_H)>' \
   -DBDD_H='<$(BDD_H)>' \
   -DABL_H='<$(ABL_H)>' 


LOCAL_LIB = \
   -L$(ALLIANCE_LIB)	\
   $(ABV_L) \
   $(ABE_L) \
   $(ABT_L) \
   $(MLU_L) \
   $(MCL_L) \
   $(MAL_L) \
   $(MSL_L) \
   $(MHL_L) \
   $(MEL_L) \
   $(MVL_L) \
   $(MGL_L) \
   $(RCN_L) \
   $(MLO_L) \
   $(BDD_L) \
   $(ABL_L) \
   $(AUT_L) \
   $(MUT_L)


LOCAL_OBJ = \
bog_unflatten_utils.o   bog_unflatten_befig.o      bog_unflatten_area.o \
bog_unflatten_oper.o    bog_unflatten_abl.o        bog_unflatten_delay.o \
bog_map_adapt.o         bog_map_prepare.o          bog_map_abl.o \
bog_map_befig.o         bog_map_pattern.o          bog_map_delay.o \
bog_signal_nameindex.o  bog_signal_utils.o         bog_signal_adapt.o \
bog_signal_delay.o      bog_normalize_message.o    bog_normalize_nameindex.o  \
bog_normalize_power.o   bog_normalize_ARITY.o      bog_normalize_simplify.o \
bog_normalize_DC.o      bog_normalize_DAG.o        bog_normalize_register.o \
bog_lib_negativ.o       bog_lib_cell.o             bog_lib_specifications.o \
bog_lib_complete.o      bog_lib_utils.o            bog_lib_matching.o \
bog_lib_format.o        bog_lib_permute.o          bog_lib_reader.o \
bog_xsch_driver.o       bog_lax_param.o            bog_main.o \

      

.c.o : 
	$(CC) -c $(LOCAL_CFLAGS) $(LOCAL_INC) $<


$(BOOG): $(TARGET_BIN)/$(BOOG)

$(TARGET_BIN)/$(BOOG) :  $(LOCAL_OBJ)
	$(CC) -o $@ $(LOCAL_CFLAGS) $(LOCAL_OBJ) $(LOCAL_LIB)  


clean :
	-$(RM) -f $(LOCAL_OBJ) *_main.o
	-$(RM) -f *.bak .*.bak *.swo *.swp *~ .*~ core


realclean distclean : clean
	-$(RM) -f $(TARGET_BIN)/$(BOOG) $(TARGET_LIB)/$(LIBRARY) $(TARGET_INCLUDE)/$(BOG_H) 


.profile: $(BOOG)

