#**************************************************************************
#* FILE NAME: makefile                       COPYRIGHT (c) Freescale 2007 *
#*                                                                        *
#* DESCRIPTION: This is the makefile for the ETPU set2 automotive set of  *
#* functions.                                                             *
#*========================================================================*
#* MAKE: GNU make        VERSION: 3.79.1                                  *
#* AUTHOR: Geoff Emerson                                                  *
#*                                                                        *
#* $Log: makefile,v $
#* Revision 1.10  2008/10/07 08:49:43  r47354
#* Add SPARK
#*
#* Revision 1.9  2008/06/20 09:42:03  r47354
#* Add FUEL function.
#*
#* Revision 1.8  2008/05/23 13:21:05  r47354
#* Revert to standard set1 QOM.
#*
#* Revision 1.7  2008/05/23 12:51:14  r47354
#* Add knock function
#*
#* Revision 1.6  2008/05/02 09:47:03  r47354
#* *** empty log message ***
#*
#* Revision 1.5  2008/05/01 15:30:36  r47354
#* Add some set1 functions
#*
#* Revision 1.3  2008/02/21 14:38:18  r47354
#* Use unix delete
#*
#* Revision 1.2  2008/01/30 11:01:57  r47354
#* Add qom for now - will remove later
#*
#* Revision 1.1  2007/09/03 15:06:40  r47354
#* Initial revision.
#*
#*
#**************************************************************************

##############################
#     ETPU compiler tools    #
# (Using ByteCraft compiler) #
##############################
ETPUCC = etpu_c
ETPUCCFLAGS = -q +l
#use the ETPUCCFLAGS below if you want an ELF
#ETPUCCFLAGS = -q +l +dELF
MKDIR = c:/cygwin/bin/mkdir2 -p


ETPUINC = etpuc.h etpuc_common.h etpuc_crank.h etpuc_cam.h etpuc_knock_window.h
ETPUFUNCS = etpuc_spark.c etpuc_fuel.c etpuc_cam.c etpuc_crank.c etpuc_knock_window.c etpuc_toothgen.c etpu_set1\etpuc_ic.c etpu_set1\etpuc_qom.c etpu_set1\etpuc_pwm.c etpu_set1\etpuc_sm.c etpu_set1\etpuc_fpm.c
ETPUAUTO = cpu\etpu_spark_auto.h cpu\etpu_fuel_auto.h cpu\etpu_cam_auto.h cpu\etpu_crank_auto.h cpu\etpu_knock_window_auto.h cpu\etpu_toothgen_auto.h etpu_set1\cpu\etpu_ic_auto.h etpu_set1\cpu\etpu_qom_auto.h etpu_set1\cpu\etpu_pwm_auto.h etpu_set1\cpu\etpu_sm_auto.h etpu_set1\cpu\etpu_fpm_auto.h

#############################
#DEL = del /Q
DEL = rm -f

#
#ETPU targets
#
etpu_set2.h : etpuc_set2.c $(ETPUINC) $(ETPUFUNCS) $(ETPUAUTO) makefile
	$(MKDIR)  cpu
	$(ETPUCC) $< $(ETPUCCFLAGS)



#Dummy targets
cpu\etpu_spark_auto.h:
cpu\etpu_fuel_auto.h:
cpu\etpu_cam_auto.h:
cpu\etpu_crank_auto.h:
cpu\etpu_knock_window_auto.h:
cpu\etpu_toothgen_auto.h:
cpu\etpu_qom_auto.h:

#
clean:
	$(DEL) *.cod *.db *.ou1 *.blk *.db2 *.map *.hex *lst *.err *.elf __*.* *_CPU.* *.o *.___ etpu_set2.h
	$(DEL) cpu\*.*



