# V team server makefile
# by Marvin Theimer, May 1983.

.SUFFIXES:
.SUFFIXES: .b .c
MACHINE=m68k

VPATH=../mi

#include ../../../buildprefix

OBJ = team.b load.b support.b hoststat.b queryhost.b migrate.b

C68FLAGS = -O -v$(Xx)V -I../mi '-DMACHINE="$(MACHINE)"'
LIBS = 

.c.b:
	cc68  $(C68FLAGS) -c $*.c

.c.s:
	cc68 $(C68FLAGS) -S -c $*.c

all: libVteamsrv.a 

libVteamsrv.a: $(OBJ)
	rm -f libVteamsrv.a
	ar cq libVteamsrv.a $(OBJ)

teamserver.$(MACHINE): teamserver.b $(OBJ)
	cc68 $(C68FLAGS) -o teamserver.$(MACHINE) teamserver.b $(OBJ) $(LIBS) 

team.b load.b support.b: ../mi/team.h

clean:
	rm -f *.BAK *.CKP *.68 *.sym *.a
	rm -f *.b *.o .emacs* libVteamsrv.a teamserver.$(MACHINE)

cleanbak:
	rm -f *BAK *CKP

install: all
	$(NETINSTALL) libVteamsrv.a $(VSYS)/lib/$(MACHINE)
#	$(NETINSTALL) -p teamserver.$(MACHINE) $(VSYS)/bin



relink:
	rm -f libVteamsrv.a teamserver.$(MACHINE)
