
CROSS = /opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux-
CC = $(CROSS)gcc
STRIP = $(CROSS)strip

objs += main.o

CFLAGS += -I./
CFLAGS += -I../../include/sbox
CFLAGS += -I../../include/modules
CFLAGS += -I../../include/tools
CFLAGS += -I../../include/st_drv
CFLAGS += -Wall

CFLAGS += -DDEBUG
CFLAGS += -DDEBUG_LEVEL=5

all : weather.plugin

clean :
	rm -f weather.plugin
	rm -f *.o
	rm -f tags
	
weather.plugin : $(objs)
	$(CC) $(CFLAGS) -shared -nostartfiles -o $@ $^
	$(STRIP) $@
install:
	ncftpput  -u root -p relook 192.168.2.4 /var/plug-in/ weather.plugin
