#### Generated from SRC=Makefile and CONF=DELEGATE_CONF
#
#	Teleport-Vehicle/0.0
#			June 1995, <ysato@etl.go.jp>
#

LIBFILE =	libteleport.a

TARGET =	all
target:		$(TARGET)
libx:		Makefile.go
		$(MAKE) -f Makefile.go $(LIBFILE) SHELL="$(SHELL)" HDRDIR="$(HDRDIR)"
MKMAKE =	exit 1

CFLAGS =	-O
HDRDIR =	-I../include

## #ifdef MSWIN ######################################################
## CCINOUT =	$*.cpp -Fo$*.o
## MKMKCPP =       ..\mkcpp.exe
## MKCPP =         ..\mkcpp.exe < $*.c > $*.cpp
## ARC =		lib.exe /out:$@
## RANLIB =	echo
## #endif #############
#ifdef UNIX,OS2EMX ################################################
CCINOUT =	$*.c -o $*.o
MKCPP =		@echo -n ""
ARC =		$(AR) cr $@
#RANLIB =	ranlib
RANLIB =	$(AR) ts
#endif #############
## #ifdef NONC99 #####################################################
## CCINX =		.cc
## CCINOUT =	$*$(CCINX)
## MKCPP =		../mkcpp $*.c $*$(CCINX)
## MKMKCPP =	../mkcpp
## #endif #############

FILES =		README Makefile teleport.h teleportd.c vehicle.c qzcode.c qz.c

CKSUM =		-@$(MKMAKE) -cksum
.c.o:;		$(MKCPP)
		$(CC) $(CFLAGS) -I../gen $(HDRDIR) -c $(CCINOUT)
		$(CKSUM) $*.c

LIBOBJS =	teleportd.o vehicle.o qzcode.o

#---BGN---
MKMAKE=/tmp/pkgbuild/net/delegate/work.earmv6hf/delegate9.9.1/mkmake.exe
MKBASE=/tmp/pkgbuild/net/delegate/work.earmv6hf/delegate9.9.1
MKMKMK=/tmp/pkgbuild/net/delegate/work.earmv6hf/delegate9.9.1/mkmkmk.exe
CFLAGS=-O2 -x c++ -DQS
CFLAGSPLUS=
LDFLAGS=-L../lib

RANLIB=/usr/bin/ranlib
NETLIB=-lutil -lpthread -lpam -lstdc++
#---CONF=DELEGATE_CONF
#---END---

all:

$(LIBFILE):	Makefile $(LIBOBJS)
		-$(RM) $@
		$(ARC) $(LIBOBJS)
		-$(RANLIB) $@

qz:		qz.o qzcode.o 
		$(CC) -o qz qz.o qzcode.o

files:;         ls -d $(FILES)
srcfiles:;	@echo $(FILES)

Makefile.go:	Makefile
		$(MKMAKE) -cksum $(FILES)
		$(MKMAKE) -mkmake "$(MAKE)" $@ "$(CC)" "$(CFLAGS)" "" "$(LDFLAGS)" "$(RANLIB)" "$(NETLIB)" NETLIB

