
#
# $Id: Makefile,v 1.15 2004/01/15 02:03:53 uid66849 Exp $
#
# Makefile for the GNOKII tool suite.
#
# Copyright (C) 1999 Hugh Blemings & Pavel Jank ml.
#               2000 Karel Zak
#

#
# For this common directory is used "subsystem.o" .o files concept.
#   (the list of object files to be linked together (to COMMON.o),
#   and other dirs is used this _one_ file (instead of all OBJS)
#

TOPDIR=../..
include $(TOPDIR)/Makefile.global

OBJS =	tekram.lo \
	unixirda.lo \
	bluetooth.lo

ifdef WIN32
	OBJS += winserial.lo
else
	OBJS += unixserial.lo \
		unixbluetooth.lo \
		osxbluetooth.lo \
		tcp.lo
endif

all: libDEVICES.la

libDEVICES.la: $(OBJS)
	$(LIBTOOL) --mode=link $(CC) -o libDEVICES.la $(OBJS)

clean:
	$(LIBTOOL) --mode=clean $(RM) libDEVICES.la $(OBJS)
	$(RM) *~ depend

install:
	@echo

depend dep:
	$(CC) $(CFLAGS) -MM *.c >depend

ifeq (depend,$(wildcard depend))
include depend
endif


.PHONY: all install clean dep depend

