# XSTEP 3.5 - Toolkit for X Window System
# Copyright (C) 1996-2000 by Marcelo Samsoniuk
#
# This program 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.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

          CC  = gcc
      CFLAGS  = -Wall -O3 -funroll-loops -fomit-frame-pointer -pipe
      CFLAGS += -I/usr/X11R6/include -I/usr/X11/include
      CFLAGS += -I/usr/local/include -I../lib
     LDFLAGS  = -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -L../lib -lxstep -lm

APPLICATIONS  = xsteptask 	\
		xstepuser 	\
		xsteppack	\
		xstepbox	\
		xstepnet
  
all:  $(APPLICATIONS)

install:
	cp $(APPLICATIONS) /usr/local/bin
	cp powerpack /usr/local/bin
	ln -sf /usr/local/bin/powerpack /usr/local/bin/installpack
	ln -sf /usr/local/bin/powerpack /usr/local/bin/removepack

clean:
	-rm -f $(APPLICATIONS)
uninstall:
	-for i in $(APPLICATIONS); do rm /usr/local/bin/$$i; done
	-rm /usr/local/bin/powerpack 
	-rm /usr/local/bin/installpack 
	-rm /usr/local/bin/removepack
