# Makefile - makefile skeleton for commstest.cpp
#
# Copyright (C) 1996 Wind River Systems, Inc.
#
# This file was generated via the Tornado Project Facility.
#

CPU = I80486
TOOL = gnu
TGT_DIR=$(WIND_BASE)/target

include $(TGT_DIR)/h/make/defs.bsp
include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)
#include $(TGT_DIR)/h/make/rules.bsp

#define _DEBUG to see status and error messages.

commstest.o:
	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -ansi -nostdinc    \
        -DRW_MULTI_THREAD -D_REENTRANT -DVXWORKS -O -fvolatile -nostdlib       \
        -fno-builtin -fno-defer-pop  -I/h   -I. -I$(TGT_DIR)\config\all \
        -I$(TGT_DIR)/h -I$(TGT_DIR)/src/config                   \
        -I$(TGT_DIR)/src/drv -DCPU=I80486   -c commstest.cpp

# These lines are used when Tornado compiles the current source file.  They
# may not be necessary.
#	nm386 commstest.o | munch > ctdt.c
#	make.exe CC_COMPILER="-traditional" ctdt.o
#	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -traditional -O \
#        -fvolatile -nostdlib -fno-builtin -fno-defer-pop -Wall -I/h   -I.   \
#        -I$(TGT_DIR)\config\all -I$(TGT_DIR)/h                \
#        -I$(TGT_DIR)/src/config -I$(TGT_DIR)/src/drv          \
#        -DCPU=I80486 -c  ctdt.c

generichostsockets.o:
	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -ansi -nostdinc    \
        -DRW_MULTI_THREAD -D_REENTRANT -DVXWORKS -O -fvolatile -nostdlib       \
        -fno-builtin -fno-defer-pop  -I/h   -I. -I$(TGT_DIR)\config\all \
        -I$(TGT_DIR)/h -I$(TGT_DIR)/src/config                   \
        -I$(TGT_DIR)/src/drv -DCPU=I80486   -c generichostsockets.cpp

protocol.o:
	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -ansi -nostdinc    \
        -DRW_MULTI_THREAD -D_REENTRANT -DVXWORKS -O -fvolatile -nostdlib       \
        -fno-builtin -fno-defer-pop  -I/h   -I. -I$(TGT_DIR)\config\all \
        -I$(TGT_DIR)/h -I$(TGT_DIR)/src/config                   \
        -I$(TGT_DIR)/src/drv -DCPU=I80486   -c protocol.cpp

iosprotocol.o:
	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -ansi -nostdinc    \
        -DRW_MULTI_THREAD -D_REENTRANT -DVXWORKS -O -fvolatile -nostdlib       \
        -fno-builtin -fno-defer-pop  -I/h   -I. -I$(TGT_DIR)\config\all \
        -I$(TGT_DIR)/h -I$(TGT_DIR)/src/config                   \
        -I$(TGT_DIR)/src/drv -DCPU=I80486   -c iosprotocol.cpp

log_report.o:
	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -ansi -nostdinc    \
        -DRW_MULTI_THREAD -D_REENTRANT -DVXWORKS -O -fvolatile -nostdlib       \
        -fno-builtin -fno-defer-pop  -I/h   -I. -I$(TGT_DIR)\config\all \
        -I$(TGT_DIR)/h -I$(TGT_DIR)/src/config                   \
        -I$(TGT_DIR)/src/drv -DCPU=I80486   -c log_report.cpp

#dclsprotocol.o:
#	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -ansi -nostdinc    \
#        -DRW_MULTI_THREAD -D_REENTRANT -DVXWORKS -O -fvolatile -nostdlib       \
#        -fno-builtin -fno-defer-pop  -I/h   -I. -I$(TGT_DIR)\config\all \
#        -I$(TGT_DIR)/h -I$(TGT_DIR)/src/config                   \
#        -I$(TGT_DIR)/src/drv -DCPU=I80486   -c dclsprotocol.cpp

#zctprotocol.o:
#	cc386 -B$(WIND_BASE)/host/x86-win32/lib/gcc-lib/ -mno-486 -ansi -nostdinc    \
#        -DRW_MULTI_THREAD -D_REENTRANT -DVXWORKS -O -fvolatile -nostdlib       \
#        -fno-builtin -fno-defer-pop  -I/h   -I. -I$(TGT_DIR)\config\all \
#        -I$(TGT_DIR)/h -I$(TGT_DIR)/src/config                   \
#        -I$(TGT_DIR)/src/drv -DCPU=I80486   -c zctprotocol.cpp


exe:	commstest.o generichostsockets.o protocol.o iosprotocol.o log_report.o
	ld386 -X -r -o commstest.out protocol.o generichostsockets.o \
        iosprotocol.o commstest.o log_report.o

# If the lines above that create ctdt.o are uncommented, then the next line
# needs to be added to the list of .o file that are linked together.
# ctdt.o 

clean:
	del *.o commstest.out

