###
### This file is part of
###
###                        TurboLinux  ZWinPro
###
###                 Copyright (C) 1999 TurboLinux, Inc. 
###                        All Rights Reserved
### Distributed under the terms of the GNU General Public License (GPL)
###
###
### Authors:     TurboLinux Chinese Development Team:
###              Justin Yu   <justiny@turbolinux.com.cn>
###              Sean Chen   <seanc@turbolinux.com.cn>
###              Daniel Fang <danf@turbolinux.com.cn>
### WWW:         http://www.turbolinux.com.cn/ZWinPro/
### FTP:         ftp://ftp.turbolinux.com.cn/pub/ZWinPro/
###

CFLAGS = # -DZWINPRO
XLIB = -L/usr/X11R6/lib -lX11 -lXext -lgdk_imlib -ljpeg -lpng -ltiff -lungif -lz -lm
GCC = gcc $(CFLAGS) -DVERSION=\"3.0\"
SRCS = toolbar.c config.c logo.c help.c tips.c file.c dialog.c convert.c manage.c
OBJS = $(SRCS:.c=.o)

all:
	make zwincontrol
	cd text; make all

zwincontrol: $(OBJS)
	gcc -o zwincontrol $(OBJS) `gtk12-config --libs` $(XLIB)

.c.o:
	$(GCC) -Wall -c `gtk12-config --cflags` $<

install: 
	strip zwincontrol
	cp -f zwincontrol /usr/local/bin
	mkdir -p /usr/local/share/locale/zh_CN/LC_MESSAGES
	cp -f text/zwincontrol_gb.mo /usr/local/share/locale/zh_CN/LC_MESSAGES/zwincontrol.mo

clean:
	rm -f zwincontrol *.o *.bak *~
	cd text; make clean
