PR_NAME = /usr/local/bin/asmon

# uncomment the following lines if your using Solaris
#SOLARIS = -D__solaris__
#SOLARIS_LIBS = -lsocket -lkstat
#SOLARIS_OBJS = solaris26.o

# uncomment the following lines for FreeBSD (2.2-4.0)
#KVM_LIB = -lkvm
#CHMOD_BSD = chmod 02755 $(PR_NAME); chgrp kmem $(PR_NAME)
#INCLUDES = -I/usr/X11R6/include

LIBDIR = -L/usr/X11R6/lib
LIBS   = -lXpm -lXext -lX11 $(SOLARIS_LIBS) $(KVM_LIB)
OBJS =  asmon.o $(SOLARIS_OBJS) \
		../wmgeneral/wmgeneral.o \
		../wmgeneral/misc.o \
		../wmgeneral/list.o

.c.o:
	gcc -c -Wall $(SOLARIS) $< -o $*.o $(INCLUDES)

asmon: $(OBJS)
	gcc -o asmon $(OBJS) $(LIBDIR) $(LIBS) $(INCLUDES)

clean:
	for i in $(OBJS) ; do \
		rm $$i;\
	done
	rm asmon

install:
	cp -f asmon $(PR_NAME); $(CHMOD_BSD)

