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

# Makefile for SDODownload

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

PRG=SDODownload


all: $(PRG)

SRCS=SDODownload.c kbhit.c

SDODownload: SDODownload.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

