# Zinc Application Framework - MAKE.GNU
# COPYRIGHT (C) 1990-1999.  All Rights Reserved.
# Zinc Software Incorporated.  Pleasant Grove, Utah  USA

#COMPILER=cc386
COMPILER=$(CC)
#LINKER=ld386
LINKER=$(LD)
#LIBRARIAN=ar386
LIBRARIAN=$(AR)
RESOURCE_COMPILER=
#NM=nm386

#COMPILE_OPTIONS=-c -m486 -ansi -O2 -fvolatile \

#COMPILE_OPTIONS=-c -m486 -ansi -nostdinc -O2 -fvolatile -nostdlib \
#-fno-builtin -fno-defer-pop -Wall -DCPU=I80486 -DVXWORKS \
#-DZAF_VXWORKS $(ADD_COMPILE_OPTIONS) -I$(ZAF_ROOT)/include\
#-I$(WIND_BASE)/target/h -I$(ZAF_ROOT)/ugl/h -DZAF_UGL -DUGL_ROOT=$(UGL_ROOT)

COMPILE_OPTIONS=-c $(C++FLAGS) -DVXWORKS \
-DZAF_VXWORKS $(ADD_COMPILE_OPTIONS) -I$(ZAF_ROOT)/include\
-I$(ZAF_ROOT)/ugl/h -DZAF_UGL -DUGL_ROOT=$(UGL_ROOT)

#-I$(WIND_BASE)/target/h -I$(ZAF_ROOT)/ugl/h -DZAF_UGL -DUGL_ROOT=$(UGL_ROOT)

#LINK_OPTIONS=-r -nostdlib $(ADD_LINK_OPTIONS)
LINK_OPTIONS=$(LD_PARTIAL_FLAGS) -nostdlib $(ADD_LINK_OPTIONS)
LIBRARY_OPTIONS=r $(ADD_LIBRARY_OPTIONS)
RESOURCE_OPTIONS=
OBJECT_FILES=
LIBRARIES=$(ZAF_ROOT)/lib/gnu/zafVxW.a $(UGL_ROOT)/lib/ugl.a
LIBRARIES_P=$(ZAF_ROOT)/lib/gnu/zafVxWp.a

#
# Implicit rules for building object files.
#

%.o:%.cpp
	$(COMPILER) $(COMPILE_OPTIONS) -o$*.o $<


%.o:%.c
	$(COMPILER) $(COMPILE_OPTIONS) -o$*.o $<
