#ProfiPacket - packet radio terminal program
#Copyright (C) 1999  Alexander Feigl
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#Author:
#
#Alexander Feigl
#Burachstraße 51
#
#D-88250 Weingarten
#
#EMail : Alexander.Feigl@gmx.de

INCLUDES=
SUBDIRS = Tools GUI @guidir@ sysdeps @sysdepdir@ QSO Catalogs Servers
ASM = @ASM@
ACONV = Tools/amiga_fixbaserel

noinst_PROGRAMS =  ProfiPacket

ProfiPacket_DEPENDENCIES = @guidir@/libgui.la @sysdepdir@/libsysdep.la \
                           QSO/libqso.la

ProfiPacket_LDADD = @guidir@/libgui.la @sysdepdir@/libsysdep.la \
                    QSO/libqso.la
                    
ProfiPacket_SOURCES = Audio.c Mail.c NewQSO.c Server.c Startup.c Util.c \
                      GlobalVar.c Main.c Pref.c Spy.c User.c  \
                      Interface.S Packet.S GuiStrings.S\
                      QSO.S



ProfiPacket_LDFLAGS = 

DISTCLEANFILES = .deps/*
CLEANFILES = *~ *.bak *.ao
MAINTAINERCLEANFILES = Makefile.in

Packet.o : Packet.ao
	$(ACONV) $*.ao $@
Interface.o : Interface.ao
	$(ACONV) $*.ao $@
QSO.o : QSO.ao
	$(ACONV) $*.ao $@

GuiStrings.ao : Catalogs/Sources/ProfiPacket.s 
	$(ASM) $(AOPTS) HEADER GuiStrings.i Catalogs/Sources/ProfiPacket.s OBJ //GuiStrings.ao

GuiStrings.o : GuiStrings.ao
	$(ACONV) GuiStrings.ao GuiStrings.o

 
%.ao     : %.S
	$(ASM) $(AOPTS) $< OBJ $*.ao	


AMINSTALL = $(prefix)/ppinstall/ProfiPacket/Profi_Packet

install-exec-local:
#amiga install section
	$(mkinstalldirs) $(AMINSTALL)
	$(INSTALL) ProfiPacket $(AMINSTALL)

