# $Id: Makefile,v 1.6 2004/07/08 20:03:16 alpha Exp $
#
# Copyright (c) 1999-2004 Darius Rad
#
# This file is part of the OpenOtto project.
#
# OpenOtto 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.
#


include ../../Rules.mk

CPPFLAGS += -I../../include


DRIVERS=uart_serial.o llc_serial.o llc_vpw.o llc_pwm.o

default: $(DRIVERS)

$(DRIVERS): %.o: %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -shared -nostartfiles -rdynamic -o $@ $^ -ldl

lint:
	$(LINT) $(LINTFLAGS) *.c

clean:
	$(RM) $(DRIVERS)

distclean: clean
