# PROJECT_NAME         Interrupt
# MODULE               Makefile
# COMPANY              SOFTING AG Muenchen
# VERSION              1.00
# DATE                 18.09.06

# Makefile for Interrupt

CFLAGS=-I../../../include -g -Wall -DOLD_PARAM

PRG=Interrupt


all: $(PRG)

SRCS=Interrupt.c kbhit.c

Interrupt: Interrupt.o kbhit.o 
	$(CC) -o $@ -g -lc -lpthread -lm -L/usr/local/lib -lLeanCANopen -lSoftingCan $^

clean:
	rm -f *.o $(PRG) *~ .depend
	$(MAKE) -C ../../can_lib clean
	$(MAKE) -C ../../LeanCANopen clean



.depend: $(SRCS)
	$(CC) -M $(CFLAGS) $^ >$@

# Target clean uses no dependencies
ifeq ($(MAKECMDGOALS), clean)
    NO_DEPEND = 1
endif

# Include dependencies if NO_DEPEND is not defined
ifndef NO_DEPEND
-include .depend
endif

