#
# modification history
# ------------ -------
# RTI,30may94,sas  Added comments.
# RTI,31mar94,gpc  written.
#
#
# makefile_p_gui_sun4 
#
# This makefile was automatically generated by nddsgen.
#
# To compile:
# (1) Define the environment vaiables cc_sun4 and ld_sun4
# (2) Type:  make -f makefile_p_gui_sun4
#
# Note: this makefile may need some minor modifications to fit your installation
#
# Copyright (c) 1994, Real-Time Innovations, Inc.
#


INCLUDES = -I$(NDDSHOME)/include/unix -I$(NDDSHOME)/include/share 

# Define any needed architecture-specific extra libraries.
syslibs_sparcSol2 = -lnsl -lsocket
syslibs_sun4 = -ldl

LIBS = \
	$(NDDSHOME)/lib/sun4/libNDDS.a \
	$(NDDSHOME)/lib/sun4/NddsXDR.a \
	$(NDDSHOME)/lib/sun4/libHash.a \
	$(NDDSHOME)/lib/sun4/netio.a \
	$(NDDSHOME)/lib/sun4/libNddsReentrantMalloc.a \
	$(syslibs_sun4)

COMMONSOURCES =  p_gui.c p_gui_ndds.c
EXEC          =  p_gui_producer p_gui_consumer p_gui_test

objects = $(COMMONSOURCES:%.c=sun4/%.o) 

default_type: sun4
	@echo Done making sun4

m68kVx5.1 m68040Vx5.1 sparcVx5.1 sparcVx5 m68kVx5 : \
	 $(objects) $(EXEC:%=sun4/%.o) $(EXEC:%=sun4/%.ro) 

sun4 sparcSol2 alphaOSF1 mipsOSv4 mipsIRIXv4 : \
	 $(objects) $(EXEC:%=sun4/%.o)  $(EXEC:%=sun4/%.out)

sun4/%.o : %.c p_gui.h
	$(cc_sun4) -g -o $@ $(INCLUDES) -c $<

sun4/%.out : sun4/%.o
	$(ld_sun4) -o $(@:%.out=%) $(@:%.out=%.o) $(objects) $(LIBS)

sun4/%.ro : sun4/%.o
	$(ld_sun4) -r -o $@ $(objects) $<

