#
# $Id: Makefile,v 1.2 1998/07/17 18:11:26 nicb Exp $
#								Exports makef

TOP = ../..

include $(TOP)/Make.Variables

THISDIR=util2/exports
LDFLAGS:=-L$(TOP) $(LDFLAGS)
CFLAGS += -I$(TOP)
PVBASE= pv_export
HETBASE= het_export
LPCBASE= lpc_export
HIBASE = het_import
PIBASE = pv_import
POBJS =  $(PVBASE).o
HOBJS =  $(HETBASE).o
LOBJS =  $(LPCBASE).o
HIOBJS = $(HIBASE).o
PIOBJS = $(PIBASE).o
PVPROG= $(APP_PREFIX)$(PVBASE)$(EXE)
HETPROG= $(APP_PREFIX)$(HETBASE)$(EXE)
LPCPROG= $(APP_PREFIX)$(LPCBASE)$(EXE)
HIPROG= $(APP_PREFIX)$(HIBASE)$(EXE)
PIPROG= $(APP_PREFIX)$(PIBASE)$(EXE)
SUBPROGS=$(PVPROG) $(HETPROG) $(LPCPROG) $(HIPROG) $(PIPROG)
OBJS=$(POBJS) $(HOBJS) $(HIOBJS) $(PIOBJS) $(LOBJS)
SRCS = $(OBJS:.o=.c) Makefile
BINDIR=$(DEST)

exports:	$(SUBPROGS)

$(PVPROG):	$(POBJS)
		$(CC) $(LDFLAGS) -o $@ $(POBJS) $(LIBS)

$(HETPROG):	$(HOBJS)
		$(CC) $(LDFLAGS) -o $@ $(HOBJS) $(LIBS)

$(LPCPROG):	$(LOBJS)
		$(CC) $(LDFLAGS) -o $@ $(LOBJS) $(LIBS)

$(PIPROG):	$(PIOBJS)
		$(CC) $(LDFLAGS) -o $@ $(PIOBJS) $(LIBS)

$(HIPROG):	$(HIOBJS)
		$(CC) $(LDFLAGS) -o $@ $(HIOBJS) $(LIBS)

install: 	$(SUBPROGS)
		if [ ! -d $(DEST) ]; then $(MKDIR) $(DEST); fi
		for i in $(SUBPROGS);\
		do \
			$(INSTALL) -s -m 755 $$i $(DEST); \
		done

include $(TOP)/Make.Subdirs
#
# $Log: Makefile,v $
# Revision 1.2  1998/07/17 18:11:26  nicb
# [changes and additions by nicb@axnet.it]
#
# - configure process:
# 	- added canonical host detection and install detection
# 	- modified Makefiles to suit the install macro better
# 	- static linking does not imply -static anymore (not standalone,
# 	  just with csound library integration)
#
# - sources:
# 	- integrated back some changes made to suit the dynamical
# 	  main/library linking that somehow got lost in the original
# 	  sources (wonder how it did work up to now, but anyway it
# 	  was not working for static linking)
#
# Revision 1.1.1.1  1998/07/08 20:48:18  nicb
# - Initial Revision (second rebuilding of the repository)
#
# Revision 0.0  1998/05/16 12:06:50  nicb
# Initial Revision
#
