#
# Buildfile for V authentication
#

VPATH = ../mi
INCLUDE= ../../../libc/include/mi
HEADERS= $(INCLUDE)/Venviron.h $(INCLUDE)/Vauthenticate.h
SOURCES= authserver.c
OBJECTS= authserver.b

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

C68FLAGS= -O -v${Xx}V

# first, define the world of 68000s
.SUFFIXES: .b .ls .a68 .c

# how to compile a 68000 file
.c.b:
	cc68 $(C68FLAGS) -I$(INCLUDE) -c $*.c 

# how to make an assembly file (Not deleting it or assembling it)
.c.s:
	cc68 $(C68FLAGS) -I$(INCLUDE) -S $*.c

# how to make an assembly listing
.c.ls:
	cc68 $(C68FLAGS) -I$(INCLUDE) -c -L $*.c

# END world of 68000's

# compile everything that needs it
all: $(OBJECTS)
	cc68 $(C68FLAGS) -r -o authserver.m68k authserver.b

install: 
	$(NETINSTALL) -p authserver.m68k $(VSYS)/bin

$(OBJECTS): $(HEADERS) $(SOURCES)

clean:
	rm -f *.o *.b *.s *.ls *CKP *BAK .emacs* *.a *.m68k *.vax

relink:
	rm -f authserver.m68k
