###############################################################################
#    keyboard emulator project
#
#    Copyright (C) 1998-2003 Reznic Valery <valery_reznic@users.sourceforge.net>
#
#    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.
#
###############################################################################

TOP_DIR := ..

TARGET = kbde

LIBRARIES = -lkbde
CPPFLAGS = $(INCLUDE_PATH) $(DEFINES)
CFLAGS = -O2 -g -Wall

CFILES = kbde.c

SOURCES =    \
   Makefile  \
   getopt.c  \
   $(CFILES) \

all-local: 

$(TARGET):
	gcc $(C_OBJECTS) $(INCLUDE_PATH) $(LIBRARY_PATH) $(LIBRARIES) -o $@

$(C_OBJECTS): $(TOPDIR)/Version

TARGET_DIR = $(DESTDIR)/usr/bin
install-local: 
	$(MKDIR)                 $(TARGET_DIR)
	$(INSTALL_RUN) $(TARGET) $(TARGET_DIR)

include $(TOP_DIR)/Makefile.include
include $(TOP_DIR)/Makefile.compile
