#* @(#) 3dmppc-213: apps/xxxx/ppc/Makefile (hello |) 1.53 96/07/31 20:25:01 * 
#***********************************************************************
#*                                                                     *
#*   MODULE:  Makefile                                                 *
#*   DATE:    96/07/31                                                 *
#*   PURPOSE: Sample makefile to build a pSOSystem application         *
#*                                                                     *
#*---------------------------------------------------------------------*
#*                                                                     *
#*        Copyright 1991 - 1996, Integrated Systems, Inc.              *
#*                      ALL RIGHTS RESERVED                            *
#*                                                                     *
#*   Permission is hereby granted to licensees of Integrated Systems,  *
#*   Inc. products to use or abstract this computer program for the    *
#*   sole purpose of implementing a product based on Integrated        *
#*   Systems, Inc. products.   No other rights to reproduce, use,      *
#*   or disseminate this computer program, whether in part or in       *
#*   whole, are granted.                                               *
#*                                                                     *
#*   Integrated Systems, Inc. makes no representation or warranties    *
#*   with respect to the performance of this computer program, and     *
#*   specifically disclaims any responsibility for any damages,        *
#*   special or consequential, connected with the use of this program. *
#*                                                                     *
#*---------------------------------------------------------------------*
#*                                                                     *
#*   Before using this Makefile, you must define environment variable  *
#*   PSS_ROOT to point to the pSOSystem "root" directory.  You may     *
#*   also need to change the definition of PSS_BSP to point to the     *
#*   board support package you are using.  PSS_BSP must be the full    *
#*   path name of the board support package.  Note: It need not be     *
#*   located under PSS_ROOT as defaulted here.                         *
#*                                                                     *
#*   You can also define an environment variable called PSS_COMPLIB.   *
#*   This may be used to link any additional library you want (for     *
#*   example libc.a). Note: PSS_COMPLIB must contain the full          *
#*   path name of the library.                                         *
#*                                                                     *
#***********************************************************************
PSS_BSP=      $(PSS_ROOT)/bsps/trace32

#-----------------------------------------------------------------------
# PSS_DRVOBJS is a list of drivers to be added to the OS, above and
# beyond those included in the pSOSystem board-support package.  (The
# driver configuration file drv_conf.o must always be included in this
# list.)
# PSS_XDRVOBJS is a list that cannot fit into the above variable when
# compiling under MSDOS environment.
#-----------------------------------------------------------------------
PSS_DRVOBJS = drv_conf.o

#-----------------------------------------------------------------------
# PSS_APPOBJS is a list of object files for the application.
#-----------------------------------------------------------------------
PSS_APPOBJS= demo.o data.o

#-----------------------------------------------------------------------
# PSS_APPINCS can be used to add non-standard include paths for the
# application, such as paths to directories containing custom drivers.
#-----------------------------------------------------------------------
PSS_APPINCS=

#-----------------------------------------------------------------------
# PSS_COMPLIB specifies libraries to be searched.  These are specified
# as command-line options:
#
# By default PSS_COMPLIB is set to use $(DIABLIB)/PPCEH/libc.a
# If you need any other libraries, you can add them down.
#-----------------------------------------------------------------------
PSS_COMPLIB = $(DIABLIB)/PPCEH/libc.a

#-----------------------------------------------------------------------
# Target "all" defines what is made when make is invoked with no
# arguments.  You may want to change this if you are building something
# else all the time.  The possible targets are:
#    ram.elf - OS and application together in RAM
#    rom.elf - OS and application together in ROM
# Targets with a ".elf" extension are ELF  format.  You may build any of
# these in S-record format instead by substituting a ".hex" extension,
# such as "ram.hex".
#-----------------------------------------------------------------------
all: ram.hex

#-----------------------------------------------------------------------
# These next 2 lines must come before any of the application rules.
#-----------------------------------------------------------------------
PSS_CONFIG=$(PSS_ROOT)/configs/std
#include $(PSS_BSP)/bsp.mk
include e:\pssroot/bsps/trace32/bsp.mk
#include $(PSS_CONFIG)/config.mk
include e:\pssroot/configs/std/config.mk

clean:
	@rm -f *.elf *.hex *.map cmd.lnk *.o *.sym *.opt

demo.o: demo.c \
        Makefile \
        sys_conf.h \
        $(PSS_ROOT)/include/probe.h \
        $(PSS_ROOT)/include/psos.h \
        $(PSS_ROOT)/include/drv_intf.h \
        demo.h
	$(CC) $(COPTS) demo.c

data.o: data.c \
        Makefile \
        sys_conf.h \
        $(PSS_ROOT)/include/psos.h     \
        demo.h
	$(CC) $(COPTS) data.c

drv_conf.o: drv_conf.c \
        Makefile \
        sys_conf.h \
        $(PSS_ROOT)/include/bspfuncs.h \
        $(PSS_ROOT)/include/configs.h  \
        $(PSS_ROOT)/include/sysvars.h  \
        $(PSS_ROOT)/include/pna.h      \
        $(PSS_BSP)/bsp.h
	$(CC) $(COPTS) drv_conf.c

