# dv @(#)V9TS/tset/GABI.os/procprim/exec_A/Makefile	1.2 93/06/21
##########################################################################
# (C) Copyright 1990,1991 UniSoft Group Ltd.
#
# All rights reserved.  No part of this source code may be reproduced,
# stored in a retrieval system, or transmitted, in any form or by any
# means, electronic, mechanical, photocopying, recording or otherwise,
# except as stated in the end-user licence agreement, without the prior
# permission of the copyright owners.
#
#	SCCS:  @(#) GABI.os/procprim/exec_A/Makefile	Ver. 1.6	Rel. 1.3	(92/08/01)
#
#	PROJECT:	GABI
#	PRODUCT:	GABI.os/procprim/exec_A
#	AUTHOR:		Dave Cater, UniSoft Ltd.
#	DATE CREATED:	Wed Oct 31 13:49:32 PST 1990
#	TARGET:		T.execl_A
#			T.execle_A
#			T.execlp_A
#			T.execv_A
#			T.execve_A
#			T.execvp_A
#			exec_tsh1_A
#			exec_tsh2_A
#			exec_tg_A
#			exec_tg1_A
#			exec_tg2_A
##########################################################################

CC =	cc 
RM =		rm -f
# This is a working lint in the top level testset directory
LINT =	lint
LINT1 =		/usr/lib/lint1
PRINTER =	lpr
PRINTFLAGS =	
TET_EXECUTE =	../../../../TESTROOT

TET_ROOT =	../../../../..
VSXDIR =	../../../../SRC
SYSINC =	$(VSXDIR)/SYSINC
# GABIINC =	$(VSXDIR)/GABIINC
SYSLIBS =	
LIBVPORT =	$(VSXLIB)/vport.a

VSXINC =	$(VSXDIR)/INC
VSXLIB =	$(VSXDIR)/LIB
VSXBIN =	$(VSXDIR)/BIN
CHMOG =	$(VSXBIN)/chmog
GENLIB =	$(VSXLIB)/genlib.a
TSETLIB =	$(VSXLIB)/tsetlib.a
# GABILIB =	$(VSXLIB)/gabilib.a

# What is installed:

INSTOWN =	vsx0
INSTGRP =	vsxg0
INSTMODE =	755
INSTDIR =	$(TET_EXECUTE)/tset/LSB.os/procprim/exec_A

# Local (to this product only) includes, libraries, etc:

LOCALINC =	.
LOCALLIB =	

# product-wide libraries for ld(1):

# LIBS =	$(GABILIB) $(TSETLIB) $(GENLIB) \
#		$(VSXLIB)/vlib.a $(LIBVPORT) $(TET_ROOT)/lib/tet3/libapi.a
LIBS =		$(TSETLIB) $(GENLIB) \
		$(VSXLIB)/vlib.a $(LIBVPORT) $(TET_ROOT)/lib/tet3/libapi.a

DBUG =	
COPTS =	
SDBFLAG =	
DEFINES =

# INCS =	-I$(TET_ROOT)/inc/tet3 -I$(LOCALINC) -I$(VSXINC) -I$(GABIINC) -I$(SYSINC)
INCS =		-I$(TET_ROOT)/inc/tet3 -I$(LOCALINC) -I$(VSXINC) -I$(SYSINC)
CFLOCAL =
CFLAGS =	$(CFLOCAL) $(INCS) $(DEFINES) $(DBUG) $(COPTS) $(SDBFLAG)
LDFLAGS =	

E_CFILES =	exec_A.c
E_OFILES =	exec_A.o
E_IFILES =	
E_LFILES =	

PG_CFILES =	exec_tg_A.c
PG_OFILES =	exec_tg_A.o
# PG1_CFILES =	exec_tg1_A.c
# PG1_OFILES =	exec_tg1_A.o
# PG2_CFILES =	exec_tg2_A.c
# PG2_OFILES =	exec_tg2_A.o
PG_IFILES =	
PG_LFILES =	

# CFILES =	$(E_CFILES) $(PG_CFILES) $(PG1_CFILES) $(PG2_CFILES)
CFILES =	$(E_CFILES) $(PG_CFILES)

# TARGETS =	T.exec_A exec_tsh1_A exec_tsh2_A exec_tg_A exec_tg1_A exec_tg2_A
TARGETS =	T.exec_A exec_tg_A

OLDLINT =	TRUE
LINTFLAGS =	$(INCS) $(DEFINES) -n
LINTLIBS =	-lgabi -lvsx -lvlib -ltset -lgen 
LINTDRV =	$(VSXDIR)/common/tet_startup/startup.c

# Targets: ---------------------------------------------------------

exec_A all:	$(TARGETS)

T.exec_A:	$(E_OFILES) $(TET_ROOT)/lib/tet3/tcm.o $(VSXLIB)/startup.o $(LIBS)
		$(CC) -o $@ $(E_OFILES) $(TET_ROOT)/lib/tet3/tcm.o $(VSXLIB)/startup.o $(LIBS) $(SYSLIBS) $(LDFLAGS)

exec_tg_A:	$(PG_OFILES) $(LIBS)
		$(CC) -o $@ $(PG_OFILES) $(LIBS) $(SYSLIBS) \
			$(LDFLAGS)

# exec_tg1_A:	$(PG1_OFILES) $(LIBS)
#		$(CC) -o $@ $(PG1_OFILES) $(LIBS) $(SYSLIBS) \
#			$(LDFLAGS)
#
# exec_tg2_A:	$(PG2_OFILES) $(LIBS)
#		$(CC) -o $@ $(PG2_OFILES) $(LIBS) $(SYSLIBS) \
#			$(LDFLAGS)
#
# exec_tsh1_A:	exec_shell_1
#		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -c $? $@
#
# exec_tsh2_A:	exec_shell_2
#		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -c $? $@

$(LIBS):
	-@echo "Warning: cannot continue making: $@ needs to be installed"
		@false

# INSTALL:	$(INSTDIR)/T.execl_A $(INSTDIR)/exec_tsh1_A \
#		$(INSTDIR)/exec_tsh2_A $(INSTDIR)/exec_tg1_A \
#		$(INSTDIR)/exec_tg2_A $(INSTDIR)/exec_tg_A 

INSTALL:	$(INSTDIR)/T.execl_A $(INSTDIR)/exec_tg_A 

$(INSTDIR)/T.execl_A:	T.exec_A
		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -m $? \
			$(INSTDIR)/T.execl_A $(INSTDIR)/T.execle_A \
			$(INSTDIR)/T.execlp_A $(INSTDIR)/T.execv_A \
			$(INSTDIR)/T.execve_A $(INSTDIR)/T.execvp_A

# $(INSTDIR)/exec_tsh1_A:	exec_tsh1_A
#		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -m $? $@

# $(INSTDIR)/exec_tsh2_A:	exec_tsh2_A
#		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -m $? $@

$(INSTDIR)/exec_tg_A: exec_tg_A
		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -m $? $@

# $(INSTDIR)/exec_tg1_A: exec_tg1_A
#		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -m $? $@

# $(INSTDIR)/exec_tg2_A: exec_tg2_A
#		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -m $? $@


LINTLIB:

LINT:
		$(LINT) $(LINTFLAGS) $(E_CFILES) $(LINTDRV) -ltcm $(LINTLIBS)
		$(LINT) $(LINTFLAGS) $(PG_CFILES) -ltcmc $(LINTLIBS)
#		$(LINT) $(LINTFLAGS) $(PG1_CFILES) -ltcmc $(LINTLIBS)
#		$(LINT) $(LINTFLAGS) $(PG2_CFILES) -ltcmc $(LINTLIBS)

FORCE:		CLOBBER all

PRINT:
		@$(PRINTER) $(PRINTFLAGS) Makefile $(E_IFILES) $(CFILES)

CLEAN:
#		$(RM) $(E_OFILES) $(PG_OFILES) $(PG1_OFILES) $(PG2_OFILES)
		$(RM) $(E_OFILES) $(PG_OFILES)

CLOBBER:	CLEAN
#		$(RM) $(TARGETS) $(INSTDIR)/T.execl_A $(INSTDIR)/T.execle_A\
#			$(INSTDIR)/T.execlp_A $(INSTDIR)/T.execv_A\
#			$(INSTDIR)/T.execve_A $(INSTDIR)/T.execvp_A\
#			$(INSTDIR)/exec_tsh1_A $(INSTDIR)/exec_tsh2_A\
#			$(INSTDIR)/exec_tg1_A $(INSTDIR)/exec_tg2_A
		$(RM) $(TARGETS) $(INSTDIR)/T.execl_A $(INSTDIR)/T.execle_A\
			$(INSTDIR)/T.execlp_A $(INSTDIR)/T.execv_A\
			$(INSTDIR)/T.execve_A $(INSTDIR)/T.execvp_A

depend:
	CFLAGS="$(CFLAGS)" CC="$(CC)" $(VSXBIN)/mkdep $(CFILES)

# DO NOT DELETE THIS LINE -- make depend uses it
# DEPENDENCIES MUST END AT END OF FILE
exec_A.o:	../../../../../inc/tet3/tet_api.h  \
	../../../../SRC/INC/dbug.h  \
	../../../../SRC/INC/report.h  \
	../../../../SRC/INC/std.h  \
	../../../../SRC/INC/sysdep.h  \
	../../../../SRC/INC/timeout.h  \
	../../../../SRC/INC/wait_child.h  \
	../../../../SRC/SYSINC/errno.h  \
	../../../../SRC/SYSINC/stdio.h  \
	../../../../SRC/SYSINC/stdlib.h  \
	../../../../SRC/SYSINC/string.h  \
	../../../../SRC/SYSINC/sys/resource.h  \
	../../../../SRC/SYSINC/sys/times.h  \
	../../../../SRC/SYSINC/sys/types.h  \
	../../../../SRC/SYSINC/sys/wait.h  \
	../../../../SRC/SYSINC/unistd.h  \
	./exec.h 
exec_tg_A.o: ../../../../SRC/INC/dbug.h  \
	../../../../SRC/INC/report.h  \
	../../../../SRC/INC/std.h  \
	../../../../SRC/INC/sysdep.h  \
	../../../../SRC/SYSINC/errno.h  \
	../../../../SRC/SYSINC/signal.h  \
	../../../../SRC/SYSINC/stdio.h  \
	../../../../SRC/SYSINC/stdlib.h  \
	../../../../SRC/SYSINC/sys/resource.h  \
	../../../../SRC/SYSINC/sys/stat.h  \
	../../../../SRC/SYSINC/sys/times.h  \
	../../../../SRC/SYSINC/sys/types.h  \
	../../../../SRC/SYSINC/time.h  \
	../../../../SRC/SYSINC/unistd.h  \
	./exec.h 
# exec_tg1_A.o:	../../../../SRC/INC/dbug.h  \
#	../../../../SRC/INC/report.h  \
#	../../../../SRC/INC/std.h  \
#	../../../../SRC/INC/sysdep.h  \
#	../../../../SRC/SYSINC/errno.h  \
#	../../../../SRC/SYSINC/stdio.h  \
#	../../../../SRC/SYSINC/stdlib.h  \
#	../../../../SRC/SYSINC/sys/stat.h  \
#	../../../../SRC/SYSINC/sys/time.h  \
#	../../../../SRC/SYSINC/sys/types.h  \
#	../../../../SRC/SYSINC/time.h  \
#	../../../../SRC/SYSINC/unistd.h  \
#	./exec.h 
# exec_tg2_A.o:	../../../../../inc/tet3/tet_api.h  \
#	../../../../SRC/INC/dbug.h  \
#	../../../../SRC/INC/report.h  \
#	../../../../SRC/INC/std.h  \
#	../../../../SRC/INC/sysdep.h  \
#	../../../../SRC/SYSINC/errno.h  \
#	../../../../SRC/SYSINC/stdio.h  \
#	../../../../SRC/SYSINC/stdlib.h  \
#	../../../../SRC/SYSINC/sys/stat.h  \
#	../../../../SRC/SYSINC/sys/time.h  \
#	../../../../SRC/SYSINC/sys/types.h  \
#	../../../../SRC/SYSINC/time.h  \
#	../../../../SRC/SYSINC/unistd.h  \
#	./exec.h 
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above
